#include <HighlightBox.h>
Inheritance diagram for nvsg::HighlightBox:
Public Member Functions | |
virtual NVSG_API const HighlightBox * | clone (void) const |
Create a HighlightBox by cloning this. | |
virtual NVSG_API bool | isBoundingSphereValid (void) const |
Ask if the bounding sphere of this HighlightBox is valid. | |
virtual NVSG_API const nvmath::Sphere3f & | getBoundingSphere (void) const |
Get the bounding sphere of this HighlightObject. | |
NVSG_API void | setVertices (nvmath::Vec3f *vertices) |
set the vertices (edges) of the bounding box | |
NVSG_API const nvmath::Vec3f * | getVertices () const |
return the vertices (edges) of the bounding box | |
NVSG_API float | getLineWidth () const |
return the line width used for drawing the box | |
NVSG_API const nvmath::Vec3f & | getColor () const |
return the line width used for drawing the box | |
Static Public Member Functions | |
static NVSG_API const HighlightBox * | create (float width=2.0f, nvmath::Vec3f color=nvmath::Vec3f(1.0f, 0.0f, 0.0f)) |
Create a HighlightBox. | |
static 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. | |
Protected Member Functions | |
NVSG_API | HighlightBox (float width, nvmath::Vec3f color) |
Constructor with line width and color. | |
NVSG_API | HighlightBox (const HighlightObject &rhs, float width, nvmath::Vec3f color) |
Partial Constructor. | |
NVSG_API | HighlightBox (const HighlightBox &rhs) |
Copy Constructor. | |
Protected Attributes | |
nvmath::Vec3f | m_vertices [8] |
the box's edges | |
float | m_lineWidth |
line width used for drawing the bounding box | |
nvmath::Vec3f | m_color |
color used for drawing | |
nvmath::BoundingSphere | m_boundingSphere |
the box's bounding sphere |
|
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
|