A MarkupModel part for drawing a sphere with a constant radius independent of the camera settings. More...
Public Member Functions | |
MarkupPartFixedSizeSphere () | |
Constructs an empty part. More... | |
MarkupPartFixedSizeSphere (const Vec3d ¢erPosition, const Color3f &color, double radiusInPixels, unsigned int numSubDivisions) | |
Constructs a part with the given settings. More... | |
virtual PartType | type () const |
Returns the type of the part. Always MarkupPart::FIXED_SIZE_SPHERE. More... | |
virtual BoundingBox | boundingBox () const |
Returns the current bounding box of the part. More... | |
virtual void | setPriority (int priority) |
Sets render priority of the part. More... | |
virtual int | priority () const |
Returns the render priority of the part. More... | |
virtual const Mat4d & | transformation () const |
Returns the current transformation matrix for the part. More... | |
virtual void | setTransformation (const Mat4d &matrix) |
Sets the transformation matrix to use for the part. More... | |
const Vec3d & | centerPosition () const |
Returns the position in world coordinates of the center position of the sphere. More... | |
void | setCenterPosition (const Vec3d ¢erPos) |
Sets the center position of the sphere in world coordinates. More... | |
const Color3f & | color () const |
Returns the color of the sphere. More... | |
void | setColor (const Color3f &color) |
Sets the color of the sphere. More... | |
double | radiusInPixels () const |
Returns the fixed radius in pixels of the sphere. More... | |
void | setRadiusInPixels (double radius) |
Sets the fixed radius in pixels of the sphere. More... | |
unsigned int | numberOfSubDivisions () const |
Returns the resolution of the sphere. More... | |
void | setNumberOfSubDivisions (unsigned int numSubDivisions) |
Sets the resolution of the sphere. More... | |
![]() | |
bool | visible () const |
Returns true if the part is visible. More... | |
void | setVisible (bool visible) |
Sets if the part should be visible or not. More... | |
![]() | |
void | addRef () const |
Increments the reference count for this object. More... | |
void | release () const |
Decrements the reference count for this object. More... | |
int | refCount () const |
Returns the reference count for this object. More... | |
void | setRefCountZero () const |
Sets the ref count to zero, but DOES NOT delete the object. More... | |
Additional Inherited Members | |
![]() | |
enum | PartType { LABELS, TEXTS_3D, TRIANGLES, INSTANCED_GEOMETRY, LINES, POINTS, ARROWS, FIXED_SIZE_ARROW, FIXED_SIZE_SPHERE, FIXED_SIZE_IMAGE_GLYPH } |
Enum specifying the type of MarkupPart. More... | |
A MarkupModel part for drawing a sphere with a constant radius independent of the camera settings.
The sphere will have the given size (in pixels) independent on camera position and settings.
The following settings can be specified:
cee::vis::MarkupPartFixedSizeSphere::MarkupPartFixedSizeSphere | ( | ) |
Constructs an empty part.
cee::vis::MarkupPartFixedSizeSphere::MarkupPartFixedSizeSphere | ( | const Vec3d & | centerPosition, |
const Color3f & | color, | ||
double | radiusInPixels, | ||
unsigned int | numSubDivisions | ||
) |
Constructs a part with the given settings.
|
virtual |
Returns the current bounding box of the part.
Implements cee::vis::MarkupPart.
const Vec3d & cee::vis::MarkupPartFixedSizeSphere::centerPosition | ( | ) | const |
Returns the position in world coordinates of the center position of the sphere.
const Color3f & cee::vis::MarkupPartFixedSizeSphere::color | ( | ) | const |
Returns the color of the sphere.
unsigned int cee::vis::MarkupPartFixedSizeSphere::numberOfSubDivisions | ( | ) | const |
Returns the resolution of the sphere.
|
virtual |
Returns the render priority of the part.
Implements cee::vis::MarkupPart.
double cee::vis::MarkupPartFixedSizeSphere::radiusInPixels | ( | ) | const |
Returns the fixed radius in pixels of the sphere.
void cee::vis::MarkupPartFixedSizeSphere::setCenterPosition | ( | const Vec3d & | centerPos | ) |
Sets the center position of the sphere in world coordinates.
void cee::vis::MarkupPartFixedSizeSphere::setColor | ( | const Color3f & | color | ) |
Sets the color of the sphere.
void cee::vis::MarkupPartFixedSizeSphere::setNumberOfSubDivisions | ( | unsigned int | numSubDivisions | ) |
Sets the resolution of the sphere.
numSubDivisions specifies the number of longitude and latitude lines in the tessellated sphere. A higher number will give a more smooth sphere, but will result in more triangles per sphere and thus (somewhat) decreased performance.
|
virtual |
Sets render priority of the part.
The render priority determines the order in which parts get rendered. Parts with lower priorities get rendered first. The default priority is 10.
Implements cee::vis::MarkupPart.
void cee::vis::MarkupPartFixedSizeSphere::setRadiusInPixels | ( | double | radius | ) |
Sets the fixed radius in pixels of the sphere.
|
virtual |
Sets the transformation matrix to use for the part.
Implements cee::vis::MarkupPart.
|
virtual |
Returns the current transformation matrix for the part.
Implements cee::vis::MarkupPart.
|
virtual |
Returns the type of the part. Always MarkupPart::FIXED_SIZE_SPHERE.
Implements cee::vis::MarkupPart.