#include <HighlightBox.h>
Inheritance diagram for nvsg::HighlightBox:
Public Methods | |
virtual NVSG_API const HighlightBox * | clone (void) const |
Create a HighlightBox by cloning this. More... | |
virtual NVSG_API bool | isBoundingSphereValid (void) const |
Ask if the bounding sphere of this HighlightBox is valid. More... | |
virtual NVSG_API const nvmath::Sphere3f & | getBoundingSphere (void) const |
Get the bounding sphere of this HighlightObject. More... | |
NVSG_API void | setVertices (nvmath::Vec3f *vertices) |
set the vertices (edges) of the bounding box. More... | |
NVSG_API const nvmath::Vec3f * | getVertices () const |
return the vertices (edges) of the bounding box. More... | |
NVSG_API float | getLineWidth () const |
return the line width used for drawing the box. More... | |
NVSG_API const nvmath::Vec3f & | getColor () const |
return the line width used for drawing the box. More... | |
Static Public Methods | |
NVSG_API const HighlightBox * | create (float width=2.0f, nvmath::Vec3f color=nvmath::Vec3f(1.0f, 0.0f, 0.0f)) |
Create a HighlightBox. More... | |
NVSG_API const HighlightBox * | createFromBase (const HighlightObject &rhs, float width=2.0f, nvmath::Vec3f color=nvmath::Vec3f(1.0f, 0.0f, 0.0f)) |
Create a HighlightBox by copying from a HighlightObject. More... | |
Protected Methods | |
NVSG_API | HighlightBox (float width, nvmath::Vec3f color) |
Constructor with line width and color. More... | |
NVSG_API | HighlightBox (const HighlightObject &rhs, float width, nvmath::Vec3f color) |
Partial Constructor. More... | |
NVSG_API | HighlightBox (const HighlightBox &rhs) |
Copy Constructor. More... | |
Protected Attributes | |
nvmath::Vec3f | m_vertices [8] |
the box's edges. More... | |
float | m_lineWidth |
line width used for drawing the bounding box. More... | |
nvmath::Vec3f | m_color |
color used for drawing. More... | |
nvmath::BoundingSphere | m_boundingSphere |
the box's bounding sphere. More... |
|
Constructor with line width and color.
|
|
Partial Constructor.
|
|
Copy Constructor.
|
|
Create a HighlightBox.
|
|
Create a HighlightBox by copying from a HighlightObject.
|
|
Create a HighlightBox by cloning this.
|
|
Ask if the bounding sphere of this HighlightBox is valid. If the bounding sphere isn't valid, it is tried to validate it.
Implements nvsg::HighlightObject. |
|
Get the bounding sphere of this HighlightObject. The bounding sphere of a Node is a sphere that completely contains the HighlightObject.
Implements nvsg::HighlightObject. |
|
set the vertices (edges) of the bounding box.
|
|
return the vertices (edges) of the bounding box.
|
|
return the line width used for drawing the box.
|
|
return the line width used for drawing the box.
|
|
the box's edges.
|
|
line width used for drawing the bounding box.
|
|
color used for drawing.
|
|
the box's bounding sphere.
|