|
iMSTK
Interactive Medical Simulation Toolkit
|
Class for quickly rendering and showing various primivites such as line segments, triangles, arrows, points. More...
#include <imstkDebugGeometryModel.h>


Public Member Functions | |
| DebugGeometryModel (const std::string &name="DebugGeometryModel") | |
| void | addLine (const Vec3d &a, const Vec3d &b) |
| Adds a line to the debug lines with default color. | |
| void | addLine (const Vec3d &a, const Vec3d &b, const Color &color) |
| Adds a line to the debug lines with specified color. | |
| void | addTriangle (const Vec3d &a, const Vec3d &b, const Vec3d &c) |
| Adds a triangle to the debug triangles with default color. | |
| void | addTriangle (const Vec3d &a, const Vec3d &b, const Vec3d &c, const Color &color) |
| Adds a triangle to the debug triangles with specified color. | |
| void | addPoint (const Vec3d &a) |
| Adds a point to the debug points. More... | |
| void | addPoint (const Vec3d &a, const Color &color) |
| Adds a point to the debug points. More... | |
| void | addArrow (const Vec3d &start, const Vec3d &end) |
| Adds an arrow to the debug arrows. More... | |
| void | addArrow (const Vec3d &start, const Vec3d &end, const Color &color) |
| Adds an arrow to the debug arrows. More... | |
| void | clear () |
| Clears all primitives. | |
| std::shared_ptr< RenderMaterial > | getPointMaterial () const |
| Accessors. | |
| std::shared_ptr< RenderMaterial > | getLineMaterial () const |
| std::shared_ptr< RenderMaterial > | getFaceMaterial () const |
| void | visualUpdate (const double &dt) override |
| Update the primitives. | |
| void | setLineWidth (const double width) |
| void | setTriColor (const Color &color) |
| void | setLineColor (const Color &color) |
| void | setPointColor (const Color &color) |
| void | setArrowColor (const Color &color) |
| void | setPointSize (const double size) |
| void | setArrowScale (const double arrowScale) |
| int | getNumPoints () const |
| int | getNumLines () const |
| int | getNumTriangles () const |
Public Member Functions inherited from imstk::Behaviour< UpdateInfo > | |
| virtual void | update (const UpdateInfo &imstkNotUsed(updateData)) |
| virtual void | visualUpdate (const UpdateInfo &imstkNotUsed(updateData)) |
| void | initTaskGraphEdges () |
| Setup the edges/connections of the TaskGraph. | |
| std::shared_ptr< TaskGraph > | getTaskGraph () const |
Public Member Functions inherited from imstk::Component | |
| 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. | |
Protected Member Functions | |
| void | init () override |
| Initialize the component, called at a later time after all component construction is complete. | |
Protected Member Functions inherited from imstk::Behaviour< UpdateInfo > | |
| Behaviour (const std::string &name="Behaviour") | |
| Behaviour (const bool useTaskGraph, const std::string &name="Behaviour") | |
| virtual void | initGraphEdges (std::shared_ptr< TaskNode > imstkNotUsed(source), std::shared_ptr< TaskNode > imstkNotUsed(sink)) |
| Setup the edges/connections of the TaskGraph. More... | |
Protected Member Functions inherited from imstk::Component | |
| Component (const std::string &name="Component") | |
Protected Attributes | |
| double | m_arrowScale |
| Color | m_arrowColor |
| std::shared_ptr< VisualModel > | m_debugLineModel |
| std::shared_ptr< VisualModel > | m_debugPointModel |
| std::shared_ptr< VisualModel > | m_debugSurfModel |
| std::shared_ptr< LineMesh > | m_debugLineMesh |
| std::shared_ptr< PointSet > | m_debugPointSet |
| std::shared_ptr< SurfaceMesh > | m_debugSurfMesh |
| std::shared_ptr< VecDataArray< double, 3 > > | m_triVerticesPtr |
| std::shared_ptr< VecDataArray< int, 3 > > | m_triIndicesPtr |
| std::shared_ptr< VecDataArray< unsigned char, 3 > > | m_triColorsPtr |
| bool | m_trianglesChanged |
| std::shared_ptr< VecDataArray< double, 3 > > | m_lineVerticesPtr |
| std::shared_ptr< VecDataArray< int, 2 > > | m_lineIndicesPtr |
| std::shared_ptr< VecDataArray< unsigned char, 3 > > | m_lineColorsPtr |
| bool | m_linesChanged |
| std::shared_ptr< VecDataArray< double, 3 > > | m_pointVerticesPtr |
| std::shared_ptr< VecDataArray< unsigned char, 3 > > | m_pointColorsPtr |
| bool | m_ptsChanged |
Protected Attributes inherited from imstk::Behaviour< UpdateInfo > | |
| std::shared_ptr< TaskGraph > | m_taskGraph = nullptr |
Protected Attributes inherited from imstk::Component | |
| std::string | m_name |
| std::weak_ptr< Entity > | m_entity |
| Parent entity this component exists on. | |
Class for quickly rendering and showing various primivites such as line segments, triangles, arrows, points.
Definition at line 29 of file imstkDebugGeometryModel.h.
| void imstk::DebugGeometryModel::addArrow | ( | const Vec3d & | start, |
| const Vec3d & | end | ||
| ) |
Adds an arrow to the debug arrows.
| tail | of arrow |
| tip | of arrow |
Definition at line 163 of file imstkDebugGeometryModel.cpp.
| void imstk::DebugGeometryModel::addArrow | ( | const Vec3d & | start, |
| const Vec3d & | end, | ||
| const Color & | color | ||
| ) |
Adds an arrow to the debug arrows.
| tail | of arrow |
| tip | of arrow |
| color | of the arrow |
Definition at line 169 of file imstkDebugGeometryModel.cpp.

| void imstk::DebugGeometryModel::addPoint | ( | const Vec3d & | a | ) |
Adds a point to the debug points.
| point | to add |
Definition at line 143 of file imstkDebugGeometryModel.cpp.
| void imstk::DebugGeometryModel::addPoint | ( | const Vec3d & | a, |
| const Color & | color | ||
| ) |
Adds a point to the debug points.
| point | to add |
| color | of the point |
Definition at line 149 of file imstkDebugGeometryModel.cpp.
1.8.13