Abstract base for selecting how to construct the control points of a volumetric B-Splines morpher. More...
Public Member Functions | |
TypeName ("controlPointsDefinition") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, controlPointsDefinition, dictionary,(NURBS3DVolume &box),(box)) | |
controlPointsDefinition (NURBS3DVolume &box) | |
Construct from underlaying NURBS box. More... | |
virtual | ~controlPointsDefinition ()=default |
Destructor. More... | |
Static Public Member Functions | |
static autoPtr< controlPointsDefinition > | New (NURBS3DVolume &box) |
Return a reference to the selected controlPointsDefinition model. More... | |
Protected Member Functions | |
virtual void | computeControlPoints ()=0 |
Compute control points. More... | |
void | transformControlPoints (const vector &geometryMin, const vector &geometryMax) |
Protected Attributes | |
NURBS3DVolume & | box_ |
The volumetric B-Splines box. More... | |
vectorField & | cps_ |
The volumetric B-Splines control points. More... | |
Abstract base for selecting how to construct the control points of a volumetric B-Splines morpher.
Definition at line 52 of file controlPointsDefinition.H.
controlPointsDefinition | ( | NURBS3DVolume & | box | ) |
Construct from underlaying NURBS box.
Definition at line 100 of file controlPointsDefinition.C.
|
virtualdefault |
Destructor.
|
protectedpure virtual |
Compute control points.
Implemented in axisAligned, fromFile, and transformBox.
Transform control points using the equivalent position, rotation and scale values from the Paraview clip filter
Definition at line 46 of file controlPointsDefinition.C.
References controlPointsDefinition::box_, Foam::cmptMultiply(), Foam::cos(), controlPointsDefinition::cps_, dict, NURBS3DVolume::dict(), dictionary::get(), Foam::constant::mathematical::pi(), R, Foam::Rx(), Foam::Ry(), Foam::Rz(), Foam::sin(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Referenced by transformBox::computeControlPoints().
TypeName | ( | "controlPointsDefinition" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
controlPointsDefinition | , | ||
dictionary | , | ||
(NURBS3DVolume &box) | , | ||
(box) | |||
) |
|
static |
Return a reference to the selected controlPointsDefinition model.
Definition at line 112 of file controlPointsDefinition.C.
References dict, NURBS3DVolume::dict(), Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, dictionary::get(), Foam::Info, and Foam::type().
|
protected |
The volumetric B-Splines box.
Definition at line 59 of file controlPointsDefinition.H.
Referenced by axisAligned::computeControlPoints(), fromFile::computeControlPoints(), transformBox::computeControlPoints(), and controlPointsDefinition::transformControlPoints().
|
protected |
The volumetric B-Splines control points.
Definition at line 62 of file controlPointsDefinition.H.
Referenced by axisAligned::computeControlPoints(), fromFile::computeControlPoints(), transformBox::computeControlPoints(), and controlPointsDefinition::transformControlPoints().