AvogadroLibs 1.98.1
|
The ArcStrip class is a convenience class for creating an arc line (e.g., the edge of a circle). More...
#include <arcstrip.h>
Public Member Functions | |
void | setArc (const Vector3f &origin, const Vector3f &start, const Vector3f &normal, float degreesCCW, float resolutionDeg, float lineWidth) |
![]() | |
LineStripGeometry (const LineStripGeometry &other) | |
LineStripGeometry & | operator= (LineStripGeometry) |
void | accept (Visitor &) override |
void | render (const Camera &camera) override |
Render the line strips. | |
void | clear () override |
Core::Array< PackedVertex > | vertices () const |
size_t | addLineStrip (const Core::Array< Vector3f > &vertices, const Core::Array< Vector4ub > &color, float lineWidth) |
size_t | addLineStrip (const Core::Array< Vector3f > &vertices, const Core::Array< Vector3ub > &color, float lineWidth) |
size_t | addLineStrip (const Core::Array< Vector3f > &vertices, float lineWidth) |
void | setColor (const Vector3ub &c) |
Vector3ub | color () const |
void | setOpacity (unsigned char opacity_) |
unsigned char | opacity () const |
![]() | |
Drawable (const Drawable &other) | |
Drawable & | operator= (Drawable) |
const GeometryNode * | parent () const |
Get a pointer to the drawable object's parent. | |
GeometryNode * | parent () |
void | setVisible (bool visibility) |
Set the visibility of the drawable object. | |
bool | isVisible () const |
Get the current visibility of the drawable. | |
Identifier & | identifier () |
const Identifier & | identifier () const |
virtual std::multimap< float, Identifier > | hits (const Vector3f &rayOrigin, const Vector3f &rayEnd, const Vector3f &rayDirection) const |
virtual Core::Array< Identifier > | areaHits (const Frustrum &f) const |
void | setRenderPass (RenderPass pass) |
RenderPass | renderPass () const |
Additional Inherited Members | |
![]() | |
static const size_t | InvalidIndex |
![]() | |
void | setParent (GeometryNode *parent) |
Set the parent node for the node. | |
![]() | |
GeometryNode * | m_parent |
bool | m_visible |
RenderPass | m_renderPass |
Identifier | m_identifier |
<avogadro/rendering/arcstrip.h>
void setArc | ( | const Vector3f & | origin, |
const Vector3f & | start, | ||
const Vector3f & | normal, | ||
float | degreesCCW, | ||
float | resolutionDeg, | ||
float | lineWidth | ||
) |
Define the arc.
origin | Center of the circle from which the arc is cut. |
start | A vector pointing from the origin to the start of the arc. |
normal | The normal direction to the plane of the circle. |
degreesCCW | The extent of the arc, measured counter-clockwise from start in degrees. |
resolutionDeg | The radial width of each segment used in the arc approximation, in degrees. This will be adjusted to fit an integral number of segments into the arc. Smaller segments (better approximations) are chosen if adjustment is needed. |
lineWidth | The width of the line. |