Hosted by: BerliOS Developer Logo

OpenMBV C++ Interface

BerliOS Project Page
Public Member Functions | Protected Member Functions | Protected Attributes
OpenMBV::NurbsDisk Class Reference

Class for all bodies with a NURBS surface and a primitive closure. More...

#include <nurbsdisk.h>

Inheritance diagram for OpenMBV::NurbsDisk:
OpenMBV::DynamicColoredBody OpenMBV::Body OpenMBV::Object

List of all members.

Public Member Functions

 NurbsDisk ()
 constructor
std::string getClassName ()
 Retrun the class name.
void setLocalFrame (bool f)
 Draw reference frame of this object in the viewer if true (the default)
bool getLocalFrame ()
void setScaleFactor (const ScalarParameter scale)
 Set the scale factor of the body.
double getScaleFactor ()
void setDrawDegree (int drawDegree_)
 Set the number of points drawn between the nodes.
int getDrawDegree ()
void setRadii (ScalarParameter Ri_, ScalarParameter Ro_)
 Set the inner and outer radius of the disk.
void setRi (ScalarParameter Ri_)
 Set the inner radius of the disk.
void setRo (ScalarParameter Ro_)
 Set the inner radius of the disk.
double getRi ()
double getRo ()
void setKnotVecAzimuthal (const std::vector< double > &KnotVecAzimuthal_)
 Set the azimuthal knot vector.
void setKnotVecAzimuthal (const VectorParameter &KnotVecAzimuthal_)
std::vector< double > getKnotVecAzimuthal ()
void setKnotVecRadial (const std::vector< double > &KnotVecRadial_)
 Set the radial knot vector.
void setKnotVecRadial (const VectorParameter &KnotVecRadial_)
std::vector< double > getKnotVecRadial ()
void setElementNumberAzimuthal (int ElementNumberAzimuthal_)
 Set the azimuthal number of finite elements used for drawing.
int getElementNumberAzimuthal ()
void setElementNumberRadial (int ElementNumberRadial_)
 Set the radial number of finite elements used for drawing.
int getElementNumberRadial ()
void setInterpolationDegreeRadial (int InterpolationDegreeRadial_)
 Set the degree of the interpolating splines in radial direction.
int getInterpolationDegreeRadial ()
void setInterpolationDegreeAzimuthal (int InterpolationDegreeAzimuthal_)
 Set the degree of the interpolating splines in azimuthal direction.
int getInterpolationDegreeAzimuthal ()
void setDiskNormal (float *DiskNormal_)
 Set the global vector of the normal of the disk.
float * getDiskNormal ()
void setDiskPoint (float *DiskPoint_)
 Set the point in the center of the disk.
float * getDiskPoint ()
void append (const std::vector< double > &row)
 Append a data vector to the h5 datsset.
int getRows ()
 Get the number of rows of the default data.
std::vector< double > getRow (int i)
 Get row number i of the default data.
virtual void initializeUsingXML (MBXMLUtils::TiXmlElement *element)
 Initializes the time invariant part of the object using a XML node.
MBXMLUtils::TiXmlElement * writeXMLFile (MBXMLUtils::TiXmlNode *parent)
 Write XML file for not time-dependent data.

Protected Member Functions

virtual ~NurbsDisk ()
 destructor
void createHDF5File ()
 Write H5 file for time-dependent data.
void openHDF5File ()

Protected Attributes

H5::VectorSerie< double > * data
 Each row comprises [time,].
std::string localFrameStr
 String that contains, whether reference Frame should be drawn (="True") or not (="False")
ScalarParameter scaleFactor
 Scale factor of the body.
int drawDegree
 Number of points drawn between the nodes.
ScalarParameter Ri
 Inner and outer radius of disk.
ScalarParameter Ro
int ElementNumberAzimuthal
 Number of finite elements in azimuthal and radial direction.
int ElementNumberRadial
int InterpolationDegreeAzimuthal
 Degree of interpolating spline polynomials in radial and azimuthal direction.
int InterpolationDegreeRadial
VectorParameter KnotVecAzimuthal
 Knot vector for azimuthal and radial direction.
VectorParameter KnotVecRadial
float * DiskNormal
 Normal of the disk in global coordinates.
float * DiskPoint
 Point on the center of the disk used for visualisation.

Detailed Description

Class for all bodies with a NURBS surface and a primitive closure.

Author:
Kilian Grundl
Raphael Missel
Thorsten Schindler
Date:
2009-05-20 initial commit (Grundl / Missel / Schindler)
2009-08-16 visualisation / contour (Grundl / Missel / Schindler)
2010-08-09 adapt to new concept of Markus Friedrich (Schindler)

Member Function Documentation

void OpenMBV::NurbsDisk::createHDF5File ( ) [protected, virtual]

Write H5 file for time-dependent data.

Reimplemented from OpenMBV::Body.

std::vector<double> OpenMBV::NurbsDisk::getRow ( int  i) [inline, virtual]

Get row number i of the default data.

NOTE: see also append()

Implements OpenMBV::Body.

References data, and drawDegree.

int OpenMBV::NurbsDisk::getRows ( ) [inline, virtual]

Get the number of rows of the default data.

Returns -1, if no default data is avaliable. NOTE: see also append()

Implements OpenMBV::Body.

References data.

void OpenMBV::NurbsDisk::setDrawDegree ( int  drawDegree_) [inline]

Set the number of points drawn between the nodes.

References drawDegree.

void OpenMBV::NurbsDisk::setElementNumberAzimuthal ( int  ElementNumberAzimuthal_) [inline]

Set the azimuthal number of finite elements used for drawing.

References ElementNumberAzimuthal.

void OpenMBV::NurbsDisk::setElementNumberRadial ( int  ElementNumberRadial_) [inline]

Set the radial number of finite elements used for drawing.

void OpenMBV::NurbsDisk::setInterpolationDegreeAzimuthal ( int  InterpolationDegreeAzimuthal_) [inline]

Set the degree of the interpolating splines in azimuthal direction.

References InterpolationDegreeAzimuthal.

void OpenMBV::NurbsDisk::setInterpolationDegreeRadial ( int  InterpolationDegreeRadial_) [inline]

Set the degree of the interpolating splines in radial direction.

void OpenMBV::NurbsDisk::setKnotVecAzimuthal ( const std::vector< double > &  KnotVecAzimuthal_) [inline]

Set the azimuthal knot vector.

These values should be set to the optimal circle values.

References KnotVecAzimuthal.

void OpenMBV::NurbsDisk::setKnotVecRadial ( const std::vector< double > &  KnotVecRadial_) [inline]

Set the radial knot vector.

These value should be set to 1 each, resulting in a B-Spline curve.

Set the inner and outer radius of the disk.

References Ri.

Set the inner radius of the disk.

References Ri.

Set the inner radius of the disk.

void OpenMBV::NurbsDisk::setScaleFactor ( const ScalarParameter  scale) [inline]

Set the scale factor of the body.

References scaleFactor.

MBXMLUtils::TiXmlElement* OpenMBV::NurbsDisk::writeXMLFile ( MBXMLUtils::TiXmlNode *  parent) [virtual]

Write XML file for not time-dependent data.

Reimplemented from OpenMBV::DynamicColoredBody.


Member Data Documentation

H5::VectorSerie<double>* OpenMBV::NurbsDisk::data [protected]

Each row comprises [time,].

Referenced by append(), getRow(), and getRows().

Number of points drawn between the nodes.

Referenced by getRow(), and setDrawDegree().

Scale factor of the body.

Referenced by setScaleFactor().


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