iMSTK
Interactive Medical Simulation Toolkit
|
Defines an axes that should be rendered. More...
#include <imstkAxesModel.h>
Public Member Functions | |
AxesModel (const std::string &name="AxesModel") | |
const Vec3d & | getPosition () const |
void | setPosition (const Vec3d &axesPos) |
const Quatd & | getOrientation () const |
void | setOrientation (const Quatd &axesOrientation) |
const Vec3d & | getScale () const |
void | setScale (const Vec3d &axesScale) |
bool | getAxesLabelsVisible () const |
void | setAxesLabelsVisible (const bool visible) |
![]() | |
VisualModel (const std::string &name="VisualModel") | |
SIGNAL (VisualModel, modified) | |
void | postModified () |
std::shared_ptr< Geometry > | getGeometry () const |
Get/Set geometry. | |
void | setGeometry (std::shared_ptr< Geometry > geometry) |
const std::string & | getName () const |
Get/Set name. | |
void | setName (std::string name) |
const std::string | getDelegateHint () const |
Get/Set the delegate hint, which helps indicate how to render this VisualModel. | |
void | setDelegateHint (const std::string &name) |
void | setRenderMaterial (std::shared_ptr< RenderMaterial > renderMaterial) |
Set/Get render material. | |
std::shared_ptr< RenderMaterial > | getRenderMaterial () const |
void | show () |
Visibility functions. | |
void | hide () |
bool | isVisible () const |
void | setIsVisible (const bool visible) |
bool | getRenderDelegateCreated (Renderer *ren) |
Get/Set whether the delegate has been created. | |
void | setRenderDelegateCreated (Renderer *ren, bool created) |
![]() | |
const std::string & | getName () const |
void | setName (const std::string &name) |
std::weak_ptr< Entity > | getEntity () const |
Get parent entity. | |
void | initialize () |
Initialize the component, called at a later time after all component construction is complete. | |
![]() | |
template<typename T > | |
void | postEvent (const T &e) |
Emits the event Direct observers will be immediately called, in sync Queued observers will receive the Command in their queue for later execution, reciever must implement doEvent. | |
template<typename T > | |
void | queueEvent (const T &e) |
Queues event directly to this. | |
void | doEvent () |
Do an event, if none exists return. | |
void | doAllEvents () |
Do all the events in the event queue. | |
void | foreachEvent (std::function< void(Command cmd)> func) |
Thread safe loop over all event commands, one can implement a custom handler. | |
void | rforeachEvent (std::function< void(Command cmd)> func) |
thread safe reverse loop over all event commands, one can implement a custom handler | |
void | clearEvents () |
Removes all events from queue cleans up copies of the event. | |
Protected Attributes | |
Vec3d | m_axesPos = Vec3d::Zero() |
Quatd | m_axesOrientation = Quatd::Identity() |
Vec3d | m_axesScale = Vec3d::Ones() |
bool | m_axesLabelsVisible = false |
![]() | |
std::string | m_delegateHint |
std::shared_ptr< Geometry > | m_geometry |
std::shared_ptr< RenderMaterial > | m_renderMaterial |
bool | m_isVisible |
true if mesh is shown, false if mesh is hidden | |
std::unordered_map< Renderer *, bool > | m_renderDelegateCreated |
![]() | |
std::string | m_name |
std::weak_ptr< Entity > | m_entity |
Parent entity this component exists on. | |
![]() | |
ParallelUtils::SpinLock | eventQueueLock |
std::deque< Command > | eventQueue |
std::vector< std::pair< std::string, std::vector< Observer > > > | queuedObservers |
std::vector< std::pair< std::string, std::vector< Observer > > > | directObservers |
Additional Inherited Members | |
![]() | |
using | Observer = std::tuple< bool, std::weak_ptr< EventObject >, std::function< void(Event *)> > |
![]() | |
Component (const std::string &name="Component") | |
virtual void | init () |
Initialize the component, called at a later time after all component construction is complete. | |
Defines an axes that should be rendered.
Definition at line 19 of file imstkAxesModel.h.