4 #ifndef vtkSMVRInteractorStyleProxy_h 5 #define vtkSMVRInteractorStyleProxy_h 8 #include "vtkPVIncubatorCAVEInteractionStylesModule.h" 44 vtkGetObjectMacro(ControlledProxy,
vtkSMProxy);
46 vtkSetStringMacro(ControlledPropertyName);
47 vtkGetStringMacro(ControlledPropertyName);
52 vtkSetMacro(IsInternal,
bool);
53 vtkGetMacro(IsInternal,
bool);
54 vtkBooleanMacro(IsInternal,
bool);
56 virtual bool HandleEvent(
const vtkVREvent& event);
72 int GetNumberOfValuatorRoles();
73 int GetNumberOfButtonRoles();
74 int GetNumberOfTrackerRoles();
79 std::string GetButtonRole(
const std::string&
name);
80 std::string GetTrackerRole(
const std::string& name);
87 unsigned int GetChannelIndexForValuatorRole(
const std::string& role);
91 void AddValuatorRole(
const std::string& role);
92 void AddButtonRole(
const std::string& role);
93 void AddTrackerRole(
const std::string& role);
99 bool SetValuatorName(
const std::string& role,
const std::string& name);
100 std::string GetValuatorName(
const std::string& role);
101 bool SetButtonName(
const std::string& role,
const std::string& name);
102 std::string GetButtonName(
const std::string& role);
103 bool SetTrackerName(
const std::string& role,
const std::string& name);
104 std::string GetTrackerName(
const std::string& role);
114 INTERACTOR_STYLE_REQUEST_CONFIGURE = vtkCommand::UserEvent + 7370,
115 INTERACTOR_STYLE_NAVIGATION = vtkCommand::UserEvent + 7371
131 void SetValuatorLookupTable(std::shared_ptr<StringMapMap>);
137 virtual void HandleButton(
const vtkVREvent& event);
138 virtual void HandleValuator(
const vtkVREvent& event);
139 virtual void HandleTracker(
const vtkVREvent& event);
141 static std::vector<std::string> Tokenize(std::string input);
149 void MapKeysToStringList(
const StringMap& source,
vtkStringList* target);
150 bool SetValueInMap(StringMap& map_,
const std::string& key,
const std::string& value);
151 std::string GetValueInMap(
const StringMap& map_,
const std::string& key);
152 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
implementation for View that includes render window and renderers.
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.
std::map< std::string, StringMap > StringMapMap
Manages allocation and freeing for a string list.
std::shared_ptr< StringMapMap > valuatorLookupTable