g4tools  5.4.0
Public Member Functions | Protected Attributes | List of all members
tools::curve Class Referenceabstract
Inheritance diagram for tools::curve:
Inheritance graph
[legend]
Collaboration diagram for tools::curve:
Collaboration graph
[legend]

Public Member Functions

virtual void * cast (const std::string &a_class) const
 
virtual void copy (curve *&) const =0
 
virtual bool pos_tan_nor (float a_s, vec3f &a_pos, vec3f &a_tan, vec3f &a_nor) const =0
 
 curve ()
 
virtual ~curve ()
 
 curve (const curve &a_from)
 
curveoperator= (const curve &a_from)
 
void set_model_matrix (const mat4f &a_m)
 

Protected Attributes

mat4f m_model
 

Detailed Description

Definition at line 19 of file curve.

Constructor & Destructor Documentation

◆ curve() [1/2]

tools::curve::curve ( )
inline

Definition at line 34 of file curve.

34  {
35 #ifdef TOOLS_MEM
36  mem::increment(s_class().c_str());
37 #endif
38  m_model.set_identity();
39  }

◆ ~curve()

virtual tools::curve::~curve ( )
inlinevirtual

Definition at line 40 of file curve.

40  {
41 #ifdef TOOLS_MEM
42  mem::decrement(s_class().c_str());
43 #endif
44  }

◆ curve() [2/2]

tools::curve::curve ( const curve a_from)
inline

Definition at line 46 of file curve.

46  :m_model(a_from.m_model){
47 #ifdef TOOLS_MEM
48  mem::increment(s_class().c_str());
49 #endif
50  }

Member Function Documentation

◆ cast()

virtual void* tools::curve::cast ( const std::string &  a_class) const
inlinevirtual

Reimplemented in tools::sg::ellipse.

Definition at line 22 of file curve.

22  {
23  if(void* p = cmp_cast<curve>(this,a_class)) {return p;}
24  return 0;
25  }

◆ copy()

virtual void tools::curve::copy ( curve *&  ) const
pure virtual

Implemented in tools::sg::ellipse.

◆ operator=()

curve& tools::curve::operator= ( const curve a_from)
inline

Definition at line 51 of file curve.

51  {
52  m_model = a_from.m_model;
53  return *this;
54  }

◆ pos_tan_nor()

virtual bool tools::curve::pos_tan_nor ( float  a_s,
vec3f a_pos,
vec3f a_tan,
vec3f a_nor 
) const
pure virtual

Implemented in tools::sg::ellipse.

◆ set_model_matrix()

void tools::curve::set_model_matrix ( const mat4f a_m)
inline

Definition at line 56 of file curve.

56 {m_model = a_m;}

Member Data Documentation

◆ m_model

mat4f tools::curve::m_model
protected

Definition at line 58 of file curve.


The documentation for this class was generated from the following file:
tools::curve::m_model
mat4f m_model
Definition: curve:58