iMSTK
Interactive Medical Simulation Toolkit
Public Member Functions | Protected Attributes | List of all members
imstk::Puncturable Class Reference

Place this on an object to make it puncturable by a needle. This allows puncturables to know they've been punctured without needing to be aware of the needle. The Puncturable supports multiple local ids. More...

#include <imstkPuncturable.h>

Inheritance diagram for imstk::Puncturable:
Inheritance graph
[legend]
Collaboration diagram for imstk::Puncturable:
Collaboration graph
[legend]

Public Member Functions

 Puncturable (const std::string &name="Puncturable")
 
bool getPunctured () const
 
void setPuncture (const PunctureId &id, std::shared_ptr< Puncture > data)
 Get/Set puncture data.
 
std::shared_ptr< PuncturegetPuncture (const PunctureId &id)
 
- Public Member Functions inherited from imstk::Component
const std::string & getName () const
 
void setName (const std::string &name)
 
std::weak_ptr< EntitygetEntity () const
 Get parent entity.
 
void initialize ()
 Initialize the component, called at a later time after all component construction is complete.
 

Protected Attributes

PunctureMap m_punctures
 
- Protected Attributes inherited from imstk::Component
std::string m_name
 
std::weak_ptr< Entitym_entity
 Parent entity this component exists on.
 

Additional Inherited Members

- Protected Member Functions inherited from imstk::Component
 Component (const std::string &name="Component")
 
virtual void init ()
 Initialize the component, called at a later time after all component construction is complete.
 

Detailed Description

Place this on an object to make it puncturable by a needle. This allows puncturables to know they've been punctured without needing to be aware of the needle. The Puncturable supports multiple local ids.

Definition at line 26 of file imstkPuncturable.h.


The documentation for this class was generated from the following files: