Avogadro::Rendering::Primitive#

class Primitive#

Subclassed by Cylinder, Sphere

Public Types

enum Type#

Identifies the type of object a primitive represents.

Values:

enumerator Invalid#
enumerator Atom#
enumerator Bond#

Public Functions

inline Primitive(Identifier id, const Vector3ub &color_)#
inline Identifier identifier() const#
inline void setIdentifier(Identifier id)#
inline const Vector3ub &color() const#
inline void setColor(const Vector3ub &c)#
struct Identifier#

Used to identify the primitive during picking.

Public Functions

inline Identifier()#
inline bool operator==(const Identifier &other) const#
inline bool operator!=(const Identifier &other) const#
inline bool isValid() const#

Public Members

const void *molecule#
Type type#
Index index#