38 void add(
const std::shared_ptr<AbstractLocator>& locator)
const;
40 void remove(
const std::shared_ptr<AbstractLocator>& locator)
const;
51 void bind(
const std::string&
name, std::function<
void()> callback);
67 std::tuple<std::shared_ptr<Locator>, std::shared_ptr<Handler>> hit(
const Ray& r);
68 bool hilite(
const Ray& r);
69 void updateHandlerColor();
72 float m_devicePixelRatio;
74 std::shared_ptr<Locator> m_actived;
75 std::shared_ptr<Handler> m_hilited;
77 std::function<void()> m_onHilited;
78 std::function<void()> m_onBegun;
79 std::function<void()> m_onUpdated;
80 std::function<void()> m_onEnded;
83 std::shared_ptr<LocatorPass>
_locatorPass(
const std::shared_ptr<Background>& background,
const std::shared_ptr<Camera>& camera);
The Color3f class inherits from Color3, specilizing the template parameters to float for element type...
Definition color.h:105
The LocatorPass class inheriting from EventWatcher class and Pass class, representing a rendering pas...
Definition locatorpass.h:32
void remove(const std::shared_ptr< AbstractLocator > &locator) const
Removes a locator from this rendering pass.
LocatorPass(const std::shared_ptr< Background > &background, const std::shared_ptr< Camera > &camera)
Color3f locatorOutface() const
void add(const std::shared_ptr< AbstractLocator > &locator) const
Adds a locator to this rendering pass.
std::shared_ptr< Locator > activeLocator() const
void setLocatorOutline(const Color3f &color)
void bind(const std::string &name, std::function< void()> callback)
void setLocatorOutface(const Color3f &color)
void unbind(const std::string &name)
void setHandlerHilited(const Color3f &color)
Color3f handlerHilited() const
Color3f handlerNormal() const
void send(const std::string &name)
bool begin(const Ray &r, Locator::Modifier modifier=Locator::Modifier::None)
Initiates the update process if there exists highlighted handler in this locator pass.
bool end(const Ray &r)
Ends the update process.
void setHandlerNormal(const Color3f &color)
Color3f locatorOutline() const
bool update(const Ray &r)
Synchronizes the locator pass's active locator and highlighted handler with the cursor position.
Modifier
The Modifier enumeration defines various modifier keys for handling different keyboard events.
Definition locator.h:37
The Matrix4f class is 4 X 4 matrix.
Definition matrix.h:226
The Pass class represents a rendering pass within a graphics pipeline.
Definition pass.h:32
CameraPtr camera
This member holds a shared pointer to a Camera object which the current pass uses for rendering.
Definition pass.h:37
BackgroundPtr background
This member holds a shared pointer to a Background object which defines the scene background.
Definition pass.h:36
std::string name
This memeber stores the name of the pass.
Definition pass.h:34
The Ray class inherits from the Tuple class, specilizing the templated parameter to float for element...
Definition ray.h:31
std::shared_ptr< LocatorPass > _locatorPass(const std::shared_ptr< Background > &background, const std::shared_ptr< Camera > &camera)