| Hosted by: |
OpenMBV C++ Interface |
BerliOS Project Page |
Class for all bodies with a NURBS surface and a primitive closure. More...
#include <nurbsdisk.h>
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 double 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 (double Ri_, double Ro_) |
| Set the inner and outer radius of the disk. | |
| void | setRi (double Ri_) |
| Set the inner radius of the disk. | |
| void | setRo (double Ro_) |
| Set the inner radius of the disk. | |
| double | getRi () |
| double | getRo () |
| void | setKnotVecAzimuthal (const std::vector< double > &KnotVecAzimuthal_) |
| Set the azimuthal knot vector. | |
| std::vector< double > | getKnotVecAzimuthal () |
| void | setKnotVecRadial (const std::vector< double > &KnotVecRadial_) |
| Set the radial knot vector. | |
| 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 (xercesc::DOMElement *element) |
| Initializes the time invariant part of the object using a XML node. | |
| xercesc::DOMElement * | writeXMLFile (xercesc::DOMNode *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") | |
| double | scaleFactor |
| Scale factor of the body. | |
| int | drawDegree |
| Number of points drawn between the nodes. | |
| double | Ri |
| Inner and outer radius of disk. | |
| double | 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 |
| std::vector< double > | KnotVecAzimuthal |
| Knot vector for azimuthal and radial direction. | |
| std::vector< double > | KnotVecRadial |
| float * | DiskNormal |
| Normal of the disk in global coordinates. | |
| float * | DiskPoint |
| Point on the center of the disk used for visualisation. | |
Class for all bodies with a NURBS surface and a primitive closure.
| 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.
| void OpenMBV::NurbsDisk::setRadii | ( | double | Ri_, |
| double | Ro_ | ||
| ) | [inline] |
Set the inner and outer radius of the disk.
References Ri.
| void OpenMBV::NurbsDisk::setRi | ( | double | Ri_ | ) | [inline] |
Set the inner radius of the disk.
References Ri.
| void OpenMBV::NurbsDisk::setRo | ( | double | Ro_ | ) | [inline] |
Set the inner radius of the disk.
| void OpenMBV::NurbsDisk::setScaleFactor | ( | const double | scale | ) | [inline] |
Set the scale factor of the body.
References scaleFactor.
| xercesc::DOMElement* OpenMBV::NurbsDisk::writeXMLFile | ( | xercesc::DOMNode * | parent | ) | [virtual] |
Write XML file for not time-dependent data.
Reimplemented from OpenMBV::DynamicColoredBody.
H5::VectorSerie<double>* OpenMBV::NurbsDisk::data [protected] |
int OpenMBV::NurbsDisk::drawDegree [protected] |
Number of points drawn between the nodes.
Referenced by getRow(), and setDrawDegree().
double OpenMBV::NurbsDisk::scaleFactor [protected] |
Scale factor of the body.
Referenced by setScaleFactor().
1.8.0