14 #ifndef vtkSMVRInteractorStyleProxy_h 15 #define vtkSMVRInteractorStyleProxy_h 18 #include "vtkPVIncubatorCAVEInteractionStylesModule.h" 54 vtkGetObjectMacro(ControlledProxy,
vtkSMProxy);
56 vtkSetStringMacro(ControlledPropertyName);
57 vtkGetStringMacro(ControlledPropertyName);
62 vtkSetMacro(IsInternal,
bool);
63 vtkGetMacro(IsInternal,
bool);
64 vtkBooleanMacro(IsInternal,
bool);
66 virtual bool HandleEvent(
const vtkVREvent& event);
82 int GetNumberOfValuatorRoles();
83 int GetNumberOfButtonRoles();
84 int GetNumberOfTrackerRoles();
89 std::string GetButtonRole(
const std::string&
name);
90 std::string GetTrackerRole(
const std::string& name);
97 unsigned int GetChannelIndexForValuatorRole(
const std::string& role);
101 void AddValuatorRole(
const std::string& role);
102 void AddButtonRole(
const std::string& role);
103 void AddTrackerRole(
const std::string& role);
105 void ClearAllRoles();
109 bool SetValuatorName(
const std::string& role,
const std::string& name);
110 std::string GetValuatorName(
const std::string& role);
111 bool SetButtonName(
const std::string& role,
const std::string& name);
112 std::string GetButtonName(
const std::string& role);
113 bool SetTrackerName(
const std::string& role,
const std::string& name);
114 std::string GetTrackerName(
const std::string& role);
124 INTERACTOR_STYLE_REQUEST_CONFIGURE = vtkCommand::UserEvent + 7370,
125 INTERACTOR_STYLE_NAVIGATION = vtkCommand::UserEvent + 7371
150 void SetValuatorLookupTable(std::shared_ptr<StringMapMap>);
156 virtual void HandleButton(
const vtkVREvent& event);
157 virtual void HandleValuator(
const vtkVREvent& event);
158 virtual void HandleTracker(
const vtkVREvent& event);
160 static std::vector<std::string> Tokenize(std::string input);
168 void MapKeysToStringList(
const StringMap& source,
vtkStringList* target);
169 bool SetValueInMap(StringMap& map_,
const std::string& key,
const std::string& value);
170 std::string GetValueInMap(
const StringMap& map_,
const std::string& key);
171 std::string GetKeyInMap(
const StringMap& map_,
const std::string& value);
the base class for all interactor styles
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