Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends
pointData Class Reference

Variant of pointEdgePoint with some transported additional data. WIP - should be templated on data like wallDistData. Passive vector v_ is not a coordinate (so no enterDomain/leaveDomain transformation needed) More...

Inheritance diagram for pointData:
Inheritance graph
[legend]
Collaboration diagram for pointData:
Collaboration graph
[legend]

Public Types

enum  representationType { rtSphere, rtVector }
 

Public Member Functions

 pointData ()
 Construct null. More...
 
 pointData (const point &origin, const scalar distSqr, const scalar s, const vector &v)
 Construct from origin, distance. More...
 
 pointData (const pointData &)
 Construct as copy. More...
 
scalar s () const
 
const vectorv () const
 
template<class TrackingData >
void transform (const tensor &rotTensor, TrackingData &td)
 Apply rotation matrix to origin. More...
 
template<class TrackingData >
bool updatePoint (const polyMesh &mesh, const label pointI, const label edgeI, const pointData &edgeInfo, const scalar tol, TrackingData &td)
 Influence of edge on point. More...
 
template<class TrackingData >
bool updatePoint (const polyMesh &mesh, const label pointI, const pointData &newPointInfo, const scalar tol, TrackingData &td)
 Influence of different value on same point. More...
 
template<class TrackingData >
bool updatePoint (const pointData &newPointInfo, const scalar tol, TrackingData &td)
 Influence of different value on same point. More...
 
template<class TrackingData >
bool updateEdge (const polyMesh &mesh, const label edgeI, const label pointI, const pointData &pointInfo, const scalar tol, TrackingData &td)
 Influence of point on edge. More...
 
bool operator== (const pointData &) const
 
bool operator!= (const pointData &) const
 
 TypeName ("pointData")
 Run-time type information. More...
 
 declareRunTimeSelectionTable (autoPtr, pointData, dictionary,(const runTimePostProcessing &parent, const dictionary &dict, const HashPtrTable< DataEntry< vector >, word > &colours),(parent, dict, colours))
 
 pointData (const runTimePostProcessing &parent, const dictionary &dict, const HashPtrTable< DataEntry< vector >, word > &colours)
 Construct from dictionary. More...
 
virtual ~pointData ()
 Destructor. More...
 
- Public Member Functions inherited from pointEdgePoint
 pointEdgePoint ()
 Construct null. More...
 
 pointEdgePoint (const point &, const scalar)
 Construct from origin, distance. More...
 
 pointEdgePoint (const pointEdgePoint &)
 Construct as copy. More...
 
const pointorigin () const
 
scalar distSqr () const
 
template<class TrackingData >
bool valid (TrackingData &td) const
 Check whether origin has been changed at all or. More...
 
template<class TrackingData >
bool sameGeometry (const pointEdgePoint &, const scalar tol, TrackingData &td) const
 Check for identical geometrical data. Used for cyclics checking. More...
 
template<class TrackingData >
void leaveDomain (const polyPatch &patch, const label patchPointI, const point &pos, TrackingData &td)
 Convert origin to relative vector to leaving point. More...
 
template<class TrackingData >
void enterDomain (const polyPatch &patch, const label patchPointI, const point &pos, TrackingData &td)
 Convert relative origin to absolute by adding entering point. More...
 
template<class TrackingData >
void transform (const tensor &rotTensor, TrackingData &td)
 Apply rotation matrix to origin. More...
 
template<class TrackingData >
bool updatePoint (const polyMesh &mesh, const label pointI, const label edgeI, const pointEdgePoint &edgeInfo, const scalar tol, TrackingData &td)
 Influence of edge on point. More...
 
template<class TrackingData >
bool updatePoint (const polyMesh &mesh, const label pointI, const pointEdgePoint &newPointInfo, const scalar tol, TrackingData &td)
 Influence of different value on same point. More...
 
template<class TrackingData >
bool updatePoint (const pointEdgePoint &newPointInfo, const scalar tol, TrackingData &td)
 Influence of different value on same point. More...
 
template<class TrackingData >
bool updateEdge (const polyMesh &mesh, const label edgeI, const label pointI, const pointEdgePoint &pointInfo, const scalar tol, TrackingData &td)
 Influence of point on edge. More...
 
template<class TrackingData >
bool equal (const pointEdgePoint &, TrackingData &td) const
 Same (like operator==) More...
 
bool operator== (const pointEdgePoint &) const
 
bool operator!= (const pointEdgePoint &) const
 

Static Public Member Functions

static autoPtr< pointDataNew (const runTimePostProcessing &parent, const dictionary &dict, const HashPtrTable< DataEntry< vector >, word > &colours, const word &pointDataName)
 Return a reference to the selected RAS model. More...
 

Static Public Attributes

static const NamedEnum< representationType, 2 > representationTypeNames
 

Protected Member Functions

void addPoints (const label frameI, vtkActor *actor, vtkPolyDataMapper *mapper, vtkPolyData *data) const
 Add the point data to the renderer. More...
 

Protected Attributes

representationType representation_
 Representation type. More...
 
scalar maxGlyphLength_
 Max glyph length. More...
 
autoPtr< DataEntry< vector > > pointColour_
 Point colour. More...
 

Private Member Functions

 pointData (const pointData &)
 Disallow default bitwise copy construct. More...
 
void operator= (const pointData &)
 Disallow default bitwise assignment. More...
 

Private Attributes

scalar s_
 Additional information. More...
 
vector v_
 Additional information. More...
 

Friends

Ostreamoperator<< (Ostream &, const pointData &)
 
Istreamoperator>> (Istream &, pointData &)
 

Detailed Description

Variant of pointEdgePoint with some transported additional data. WIP - should be templated on data like wallDistData. Passive vector v_ is not a coordinate (so no enterDomain/leaveDomain transformation needed)

Source files

Source files

Definition at line 53 of file pointData.H.

Member Enumeration Documentation

◆ representationType

Enumerator
rtSphere 
rtVector 

Definition at line 61 of file pointData.H.

Constructor & Destructor Documentation

◆ pointData() [1/5]

pointData ( )
inline

Construct null.

Definition at line 32 of file pointDataI.H.

◆ pointData() [2/5]

pointData ( const point origin,
const scalar  distSqr,
const scalar  s,
const vector v 
)
inline

Construct from origin, distance.

Definition at line 42 of file pointDataI.H.

◆ pointData() [3/5]

pointData ( const pointData wpt)
inline

Construct as copy.

Definition at line 56 of file pointDataI.H.

◆ pointData() [4/5]

pointData ( const pointData )
private

Disallow default bitwise copy construct.

◆ pointData() [5/5]

pointData ( const runTimePostProcessing parent,
const dictionary dict,
const HashPtrTable< DataEntry< vector >, word > &  colours 
)

Construct from dictionary.

Definition at line 87 of file pointData.C.

References dict.

◆ ~pointData()

~pointData ( )
virtual

Destructor.

Definition at line 159 of file pointData.C.

Member Function Documentation

◆ s()

Foam::scalar s ( ) const
inline

Definition at line 66 of file pointDataI.H.

Referenced by pointData::operator==().

Here is the caller graph for this function:

◆ v()

const Foam::vector & v ( ) const
inline

Definition at line 72 of file pointDataI.H.

Referenced by pointData::operator==().

Here is the caller graph for this function:

◆ transform()

void transform ( const tensor rotTensor,
TrackingData &  td 
)
inline

Apply rotation matrix to origin.

Definition at line 80 of file pointDataI.H.

References Foam::transform(), and pointEdgePoint::transform().

Here is the call graph for this function:

◆ updatePoint() [1/3]

bool updatePoint ( const polyMesh mesh,
const label  pointI,
const label  edgeI,
const pointData edgeInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of edge on point.

Definition at line 93 of file pointDataI.H.

References mesh, pointData::s_, pointEdgePoint::updatePoint(), and pointData::v_.

Here is the call graph for this function:

◆ updatePoint() [2/3]

bool updatePoint ( const polyMesh mesh,
const label  pointI,
const pointData newPointInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of different value on same point.

Merge new and old info.

Definition at line 128 of file pointDataI.H.

References mesh, pointData::s_, pointEdgePoint::updatePoint(), and pointData::v_.

Here is the call graph for this function:

◆ updatePoint() [3/3]

bool updatePoint ( const pointData newPointInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of different value on same point.

No information about current position whatsoever.

Definition at line 162 of file pointDataI.H.

References pointData::s_, pointEdgePoint::updatePoint(), and pointData::v_.

Here is the call graph for this function:

◆ updateEdge()

bool updateEdge ( const polyMesh mesh,
const label  edgeI,
const label  pointI,
const pointData pointInfo,
const scalar  tol,
TrackingData &  td 
)
inline

Influence of point on edge.

Definition at line 184 of file pointDataI.H.

References mesh, pointData::s_, pointEdgePoint::updateEdge(), and pointData::v_.

Here is the call graph for this function:

◆ operator==()

bool operator== ( const pointData rhs) const
inline

Definition at line 220 of file pointDataI.H.

References pointEdgePoint::operator==(), s(), pointData::s(), and pointData::v().

Here is the call graph for this function:

◆ operator!=()

bool operator!= ( const pointData rhs) const
inline

Definition at line 230 of file pointDataI.H.

◆ operator=()

void operator= ( const pointData )
private

Disallow default bitwise assignment.

◆ addPoints()

void addPoints ( const label  frameI,
vtkActor *  actor,
vtkPolyDataMapper *  mapper,
vtkPolyData *  data 
) const
protected

Add the point data to the renderer.

Definition at line 61 of file pointData.C.

◆ TypeName()

TypeName ( "pointData"  )

Run-time type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
pointData  ,
dictionary  ,
(const runTimePostProcessing &parent, const dictionary &dict, const HashPtrTable< DataEntry< vector >, word > &colours)  ,
(parent, dict, colours)   
)

◆ New()

Foam::autoPtr< Foam::pointData > New ( const runTimePostProcessing parent,
const dictionary dict,
const HashPtrTable< DataEntry< vector >, word > &  colours,
const word pointDataName 
)
static

Return a reference to the selected RAS model.

Definition at line 128 of file pointData.C.

References dict, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, and Foam::nl.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

Ostream& operator<< ( Ostream ,
const pointData  
)
friend

◆ operator>>

Istream& operator>> ( Istream ,
pointData  
)
friend

Field Documentation

◆ s_

scalar s_
private

Additional information.

Definition at line 60 of file pointData.H.

Referenced by pointData::updateEdge(), and pointData::updatePoint().

◆ v_

vector v_
private

Additional information.

Definition at line 63 of file pointData.H.

Referenced by pointData::updateEdge(), and pointData::updatePoint().

◆ representationTypeNames

const Foam::NamedEnum< Foam::pointData::representationType, 2 > representationTypeNames
static

Definition at line 67 of file pointData.H.

◆ representation_

representationType representation_
protected

Representation type.

Definition at line 86 of file pointData.H.

◆ maxGlyphLength_

scalar maxGlyphLength_
protected

Max glyph length.

Definition at line 89 of file pointData.H.

◆ pointColour_

autoPtr<DataEntry<vector> > pointColour_
protected

Point colour.

Definition at line 92 of file pointData.H.


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