SOFA API  7352f41a
Open source framework for multi-physics simuation
vrender::Segment Class Reference

#include <Primitive.h>

Inheritance diagram for vrender::Segment:

Protected Attributes

Feedback3DColor P1
 
Feedback3DColor P2
 
- Protected Attributes inherited from vrender::Primitive
int _vibility
 

Public Member Functions

 Segment (const Feedback3DColor &p1, const Feedback3DColor &p2)
 
virtual ~Segment ()
 
virtual size_t nbVertices () const
 
virtual const Vector3vertex (size_t) const
 
virtual const Feedback3DColorsommet3DColor (size_t i) const
 
virtual AxisAlignedBox_xyz bbox () const
 
- Public Member Functions inherited from vrender::Primitive
virtual ~Primitive ()
 

Attribute details

◆ P1

Feedback3DColor vrender::Segment::P1
protected

◆ P2

Feedback3DColor vrender::Segment::P2
protected

Constructor details

◆ Segment()

vrender::Segment::Segment ( const Feedback3DColor p1,
const Feedback3DColor p2 
)
inline

◆ ~Segment()

virtual vrender::Segment::~Segment ( )
inlinevirtual

Function details

◆ bbox()

AxisAlignedBox_xyz Segment::bbox ( ) const
virtual

Implements vrender::Primitive.

◆ nbVertices()

virtual size_t vrender::Segment::nbVertices ( ) const
inlinevirtual

Implements vrender::Primitive.

◆ sommet3DColor()

const Feedback3DColor & Segment::sommet3DColor ( size_t  i) const
virtual

Implements vrender::Primitive.

◆ vertex()

const Vector3 & Segment::vertex ( size_t  i) const
virtual

Implements vrender::Primitive.