4 #ifndef vtkSMVRInteractorStyleProxy_h 5 #define vtkSMVRInteractorStyleProxy_h 8 #include "vtkPVIncubatorCAVEInteractionStylesModule.h" 40 vtkGetObjectMacro(ControlledProxy,
vtkSMProxy);
42 vtkSetStringMacro(ControlledPropertyName);
43 vtkGetStringMacro(ControlledPropertyName);
45 virtual bool HandleEvent(
const vtkVREvent& event);
61 int GetNumberOfValuatorRoles();
62 int GetNumberOfButtonRoles();
63 int GetNumberOfTrackerRoles();
68 std::string GetValuatorRole(
const std::string&
name);
69 std::string GetButtonRole(
const std::string& name);
70 std::string GetTrackerRole(
const std::string& name);
74 void AddValuatorRole(
const std::string& role);
75 void AddButtonRole(
const std::string& role);
76 void AddTrackerRole(
const std::string& role);
82 bool SetValuatorName(
const std::string& role,
const std::string& name);
83 std::string GetValuatorName(
const std::string& role);
84 bool SetButtonName(
const std::string& role,
const std::string& name);
85 std::string GetButtonName(
const std::string& role);
86 bool SetTrackerName(
const std::string& role,
const std::string& name);
87 std::string GetTrackerName(
const std::string& role);
97 INTERACTOR_STYLE_REQUEST_CONFIGURE = vtkCommand::UserEvent + 7370
104 virtual void HandleButton(
const vtkVREvent& event);
105 virtual void HandleValuator(
const vtkVREvent& event);
106 virtual void HandleTracker(
const vtkVREvent& event);
108 static std::vector<std::string> Tokenize(std::string input);
117 void MapKeysToStringList(
const StringMap& source,
vtkStringList* target);
118 bool SetValueInMap(StringMap& map_,
const std::string& key,
const std::string& value);
119 std::string GetValueInMap(
const StringMap& map_,
const std::string& key);
120 std::string GetKeyInMap(
const StringMap& map_,
const std::string& value);
void PrintSelf(ostream &os, vtkIndent indent) override
virtual int GetControlledPropertySize()
std::map< std::string, std::string > StringMap
property representing a vector of doubles
char * ControlledPropertyName
static vtkSMProxy * New()
proxy for a VTK object(s) on a server
is used to locate proxies referred to in state xmls while loading state files.
vtkSMProxy * ControlledProxy
void operator=(const vtkSMProxy &)=delete
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
Manages allocation and freeing for a string list.