AvogadroLibs 1.98.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ArcStrip Class Reference

The ArcStrip class is a convenience class for creating an arc line (e.g., the edge of a circle). More...

#include <arcstrip.h>

Inheritance diagram for ArcStrip:
LineStripGeometry Drawable

Public Member Functions

void setArc (const Vector3f &origin, const Vector3f &start, const Vector3f &normal, float degreesCCW, float resolutionDeg, float lineWidth)
 
- Public Member Functions inherited from LineStripGeometry
 LineStripGeometry (const LineStripGeometry &other)
 
LineStripGeometryoperator= (LineStripGeometry)
 
void accept (Visitor &) override
 
void render (const Camera &camera) override
 Render the line strips.
 
void clear () override
 
Core::Array< PackedVertexvertices () 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
 
- Public Member Functions inherited from Drawable
 Drawable (const Drawable &other)
 
Drawableoperator= (Drawable)
 
const GeometryNodeparent () const
 Get a pointer to the drawable object's parent.
 
GeometryNodeparent ()
 
void setVisible (bool visibility)
 Set the visibility of the drawable object.
 
bool isVisible () const
 Get the current visibility of the drawable.
 
Identifieridentifier ()
 
const Identifieridentifier () const
 
virtual std::multimap< float, Identifierhits (const Vector3f &rayOrigin, const Vector3f &rayEnd, const Vector3f &rayDirection) const
 
virtual Core::Array< IdentifierareaHits (const Frustrum &f) const
 
void setRenderPass (RenderPass pass)
 
RenderPass renderPass () const
 

Additional Inherited Members

- Static Public Attributes inherited from LineStripGeometry
static const size_t InvalidIndex
 
- Protected Member Functions inherited from Drawable
void setParent (GeometryNode *parent)
 Set the parent node for the node.
 
- Protected Attributes inherited from Drawable
GeometryNodem_parent
 
bool m_visible
 
RenderPass m_renderPass
 
Identifier m_identifier
 

Detailed Description

<avogadro/rendering/arcstrip.h>

Member Function Documentation

◆ setArc()

void setArc ( const Vector3f &  origin,
const Vector3f &  start,
const Vector3f &  normal,
float  degreesCCW,
float  resolutionDeg,
float  lineWidth 
)

Define the arc.

Parameters
originCenter of the circle from which the arc is cut.
startA vector pointing from the origin to the start of the arc.
normalThe normal direction to the plane of the circle.
degreesCCWThe extent of the arc, measured counter-clockwise from start in degrees.
resolutionDegThe 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.
lineWidthThe width of the line.

The documentation for this class was generated from the following file: