Main Page | Namespace List | Class List | Directories | File List | Namespace Members | Class Members | File Members

IQuadric Class Reference

Geometry Node for general Quadric. More...

#include <iquadric_geo.h>

List of all members.

Public Member Functions

 IQuadric ()
 Constructor, default.
virtual ~IQuadric ()
 Destructor.
virtual void postConstructor ()
 Post Constructor.
virtual MStatus compute (const MPlug &, MDataBlock &)
 Compute callback (for DAG).
virtual bool getInternalValue (const MPlug &p, MDataHandle &data_block)
 Get the value of an internal attribute (interface for GUI).
virtual bool setInternalValue (const MPlug &p, MDataHandle &data_block)
 Set the value of an internal attribute (interface for GUI).
virtual bool isBounded () const
 States if object has a queryable bound.
virtual MBoundingBox boundingBox () const
 Returns an MBoundingBox object containing the bounding box for the quadric.
MStatus updateValues (const MMatrix &transform)
 Updates the internal parameter values from the Maya UI attribute values.
void updateGUIValues ()
 Update values from GUI.
void getParameter (MMatrix &matrix, double &max_distance, bool &is_limited) const
 Get the quadric parameter in Matrix form.

Static Public Member Functions

static void * creator ()
 Static construction interface.
static MStatus initialize ()
 Static initializer.

Static Public Attributes

static MTypeId id

Private Attributes

float parameter [NumParameter]
MMatrix params_ws
float max_distance
bool is_limited

Static Private Attributes

static const unsigned int NumParameter = 10
static MObject params_node [NumParameter]
 Variables, static.
static MFnNumericAttribute params_gui [NumParameter]
static MObject max_dist_node
static MFnNumericAttribute max_dist_gui
static MObject is_limited_node
static MFnEnumAttribute is_limited_gui

Friends

class IQuadricUI


Detailed Description

Geometry Node for general Quadric.


Member Function Documentation

MStatus IQuadric::compute const MPlug &  ,
MDataBlock & 
[virtual]
 

Compute callback (for DAG).

Note:
unused

void * IQuadric::creator  )  [static]
 

Static construction interface.

Returns:
new IQuadric object

bool IQuadric::getInternalValue const MPlug &  p,
MDataHandle &  data_block
[virtual]
 

Get the value of an internal attribute (interface for GUI).

Parameters:
p plug of internal value
data_block wrapped data of internal parameter

void IQuadric::getParameter MMatrix &  matrix,
double &  max_distance,
bool &  is_limited
const
 

Get the quadric parameter in Matrix form.

Parameters:
matrix storage for current matrix of quadric parameters
max_dist current maximal distance from quadric center (for limited quadrics)
is_l current is_limited state (returned)

bool IQuadric::setInternalValue const MPlug &  p,
MDataHandle &  data_block
[virtual]
 

Set the value of an internal attribute (interface for GUI).

Parameters:
p plug of internal value
data_block wrapped data of internal parameter

void IQuadric::updateGUIValues  ) 
 

Update values from GUI.

Parameters:
trans transformation node of the shape node (update if transformation values change)

MStatus IQuadric::updateValues const MMatrix &  transform  ) 
 

Updates the internal parameter values from the Maya UI attribute values.

Parameters:
trans transformation node of the shape node (update if transformation values change)


Member Data Documentation

bool IQuadric::is_limited [private]
 

Parameters:
is_limited states if quadric has to be limited

MFnEnumAttribute IQuadric::is_limited_gui [static, private]
 

Parameters:
is_limit_gui gui parameter if limited quadric

MObject IQuadric::is_limited_node [static, private]
 

Parameters:
is_limited_node node parameter if limited quadric

MFnNumericAttribute IQuadric::max_dist_gui [static, private]
 

Parameters:
max_dist_gui GUI binding of maximal distance parameter

MObject IQuadric::max_dist_node [static, private]
 

Parameters:
max_dist_node node for maximal distance

float IQuadric::max_distance [private]
 

Parameters:
max distance from center for limited quadrics

const unsigned int IQuadric::NumParameter = 10 [static, private]
 

Parameters:
number of (unique) parameter

float IQuadric::parameter[NumParameter] [private]
 

Parameters:
parameter parameter of the quadric in cononical form as presented in the gui, upper triangle matrix of parameter in matrix notation

MFnNumericAttribute IQuadric::params_gui [static, private]
 

Parameters:
quadric_gui GUI binding of the matrix of the quadric

MObject IQuadric::params_node [static, private]
 

Variables, static.

Parameters:
quadric_node node attributes of quadric matrix

MMatrix IQuadric::params_ws [private]
 

Parameters:
params_ws parameter of the quadric in world space upper triangle matrix of parameter in matrix notation


The documentation for this class was generated from the following files:
Generated on Sat Dec 31 18:07:49 2005 for ICaster by  doxygen 1.4.4