RenderTools::Quadric Class Reference

#include <Quadric.h>

Inheritance diagram for RenderTools::Quadric:

RenderTools::Rendernode RenderTools::BindingInterface RenderTools::RenderInterface RenderTools::RelationalNode RenderTools::TransformNode RenderTools::AbstractPropertyContainer RenderTools::ContainerProperty RenderTools::AbstractProperty RenderTools::InitializeInterface RenderTools::Ellipsoid

List of all members.

Public Member Functions

 Quadric (void)
virtual ~Quadric (void)
virtual Mat4 findSurfaceGlobal (const Vec3 &global, int iterations=10) const =0
virtual Mat4 findSurfaceLocal (const Vec3 &local, int iterations=10) const =0
const Vec4getSize (void) const
void setSize (const Vec4 &v, bool send=true)
const Vec2getExponents (void) const
void setExponents (const Vec2 &v, bool send=true)
const Vec2getRoundness (void) const
void setRoundness (const Vec2 &v, bool send=true)
const Vec3getSubdivisions (void) const
void setSubdivisions (const Vec3 &v, bool send=true)
const bool getCorrectUV (void) const
void setCorrectUV (bool state, bool send=true)

Protected Member Functions

double cvn (double v, double n)
double sgnf (double x)
double svn (double v, double n)

Protected Attributes

Vec4 m_size
Vec2 m_exponents
 Scaling factors for x, y, and z and optional w component for toroids.
Vec2 m_roundness
 North-South/East-West Roundness/Squareness Factors.
Vec3 m_subdiv
bool m_correctUV
 Number of segments.


Detailed Description

Definition at line 16 of file Quadric.h.


Constructor & Destructor Documentation

RenderTools::Quadric::Quadric ( void   ) 

some defaults

Definition at line 9 of file Quadric.cpp.

RenderTools::Quadric::~Quadric ( void   )  [virtual]

Definition at line 27 of file Quadric.cpp.


Member Function Documentation

double RenderTools::Quadric::cvn ( double  v,
double  n 
) [protected]

Definition at line 45 of file Quadric.cpp.

virtual Mat4 RenderTools::Quadric::findSurfaceGlobal ( const Vec3 global,
int  iterations = 10 
) const [pure virtual]

Implemented in RenderTools::Ellipsoid.

virtual Mat4 RenderTools::Quadric::findSurfaceLocal ( const Vec3 local,
int  iterations = 10 
) const [pure virtual]

Implemented in RenderTools::Ellipsoid.

const bool RenderTools::Quadric::getCorrectUV ( void   )  const

Definition at line 95 of file Quadric.cpp.

const Vec2 & RenderTools::Quadric::getExponents ( void   )  const

Definition at line 68 of file Quadric.cpp.

const Vec2 & RenderTools::Quadric::getRoundness ( void   )  const

Definition at line 77 of file Quadric.cpp.

const Vec4 & RenderTools::Quadric::getSize ( void   )  const

Definition at line 59 of file Quadric.cpp.

const Vec3 & RenderTools::Quadric::getSubdivisions ( void   )  const

Definition at line 86 of file Quadric.cpp.

void RenderTools::Quadric::setCorrectUV ( bool  state,
bool  send = true 
)

changeProperty

Definition at line 99 of file Quadric.cpp.

void RenderTools::Quadric::setExponents ( const Vec2 v,
bool  send = true 
)

changeProperty

Definition at line 72 of file Quadric.cpp.

void RenderTools::Quadric::setRoundness ( const Vec2 v,
bool  send = true 
)

changeProperty

Definition at line 81 of file Quadric.cpp.

void RenderTools::Quadric::setSize ( const Vec4 v,
bool  send = true 
)

changeProperty

Definition at line 63 of file Quadric.cpp.

void RenderTools::Quadric::setSubdivisions ( const Vec3 v,
bool  send = true 
)

changeProperty

Definition at line 90 of file Quadric.cpp.

double RenderTools::Quadric::sgnf ( double  x  )  [protected]

Returns:
the sign of x

Definition at line 33 of file Quadric.cpp.

double RenderTools::Quadric::svn ( double  v,
double  n 
) [protected]

Definition at line 54 of file Quadric.cpp.


Member Data Documentation

Number of segments.

Definition at line 49 of file Quadric.h.

Scaling factors for x, y, and z and optional w component for toroids.

Definition at line 46 of file Quadric.h.

North-South/East-West Roundness/Squareness Factors.

Definition at line 47 of file Quadric.h.

Definition at line 45 of file Quadric.h.

Definition at line 48 of file Quadric.h.


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

Generated on Wed Jan 26 00:15:36 2011 for RenderTools by  doxygen 1.5.8