vtkbone
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkboneNodeSetsByGeometry Class Reference

various algorithms to select nodes sets from a mesh by geometry. More...

#include <vtkboneNodeSetsByGeometry.h>

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

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual vtkMTimeType GetMTime ()
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
void SetReferenceCount (int)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 

Static Public Member Functions

static vtkboneNodeSetsByGeometryNew ()
 
static int IsTypeOf (const char *type)
 
static vtkboneNodeSetsByGeometrySafeDownCast (vtkObject *o)
 
static void DetermineMaterialBounds (vtkUnstructuredGrid *geometry, double bounds[6], int specificMaterial=-1)
 
static int FilterPointListByCellScalar (vtkIdTypeArray *output_ids, vtkIdTypeArray *input_ids, vtkDataSet *data, int targetCellScalar)
 
static int FindNodesOnPlane (int axis, float val, vtkIdTypeArray *ids, vtkUnstructuredGrid *ug, int specificMaterial=-1)
 
static int AddNodesOnPlane (int axis, float val, const char *name, vtkboneFiniteElementModel *model, int specificMaterial=-1)
 
static int AddNodesAndElementsOnPlane (int axis, float val, const char *name, vtkboneFiniteElementModel *model, int specificMaterial=-1)
 
static int FindNodesIntersectingTwoPlanes (int axis1, float val1, int axis2, float val2, vtkIdTypeArray *ids, vtkUnstructuredGrid *ug, int specificMaterial=-1)
 
static int AddNodesIntersectingTwoPlanes (int axis1, float val1, int axis2, float val2, const char *name, vtkboneFiniteElementModel *model, int specificMaterial=-1)
 
static int AddNodesAndElementsIntersectingTwoPlanes (int axis1, float val1, int axis2, float val2, const char *name, vtkboneFiniteElementModel *model, int specificMaterial=-1)
 
static int FindNodesIntersectingThreePlanes (int axisA, float valA, int axisB, float valB, int axisC, float valC, vtkIdTypeArray *ids, vtkUnstructuredGrid *ug, int specificMaterial=-1)
 
static int AddNodesIntersectingThreePlanes (int axisA, float valA, int axisB, float valB, int axisC, float valC, const char *name, vtkboneFiniteElementModel *model, int specificMaterial=-1)
 
static int AddNodesAndElementsIntersectingThreePlanes (int axisA, float valA, int axisB, float valB, int axisC, float valC, const char *name, vtkboneFiniteElementModel *model, int specificMaterial=-1)
 
static int FindNodesOnVisibleSurface (vtkIdTypeArray *visibleNodesIds, vtkUnstructuredGrid *ug, double normalVector[3], int specificMaterial=-1)
 
static int AddNodesOnVisibleSurface (const char *name, vtkboneFiniteElementModel *model, double normalVector[3], int specificMaterial=-1)
 
static int AddNodesAndElementsOnVisibleSurface (const char *name, vtkboneFiniteElementModel *model, double normalVector[3], int specificMaterial=-1)
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 
static vtkObjectBaseNew ()
 

Protected Member Functions

 vtkboneNodeSetsByGeometry ()
 
 ~vtkboneNodeSetsByGeometry ()
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Additional Inherited Members

- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

various algorithms to select nodes sets from a mesh by geometry.

These static methods are typically used to find nodes for boundary conditions for finite element models (vtkboneFiniteElementModel).

Note that in the future these static methods may be replaced by filter classes.

See also
vtkboneFiniteElementModel vtkboneFiniteElementModelGenerator

Definition at line 44 of file vtkboneNodeSetsByGeometry.h.

Constructor & Destructor Documentation

vtkboneNodeSetsByGeometry::vtkboneNodeSetsByGeometry ( )
inlineprotected

Definition at line 226 of file vtkboneNodeSetsByGeometry.h.

vtkboneNodeSetsByGeometry::~vtkboneNodeSetsByGeometry ( )
inlineprotected

Definition at line 227 of file vtkboneNodeSetsByGeometry.h.

Member Function Documentation

static vtkboneNodeSetsByGeometry* vtkboneNodeSetsByGeometry::New ( )
static
virtual const char* vtkboneNodeSetsByGeometry::GetClassName ( )
virtual
static int vtkboneNodeSetsByGeometry::IsTypeOf ( const char *  type)
static
virtual int vtkboneNodeSetsByGeometry::IsA ( const char *  type)
virtual

Reimplemented from vtkObjectBase.

static vtkboneNodeSetsByGeometry* vtkboneNodeSetsByGeometry::SafeDownCast ( vtkObject o)
static
void vtkboneNodeSetsByGeometry::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Reimplemented from vtkObject.

static void vtkboneNodeSetsByGeometry::DetermineMaterialBounds ( vtkUnstructuredGrid geometry,
double  bounds[6],
int  specificMaterial = -1 
)
static

Determine the bounds of model, either for the whole model, or for the SpecificMaterial defined (i.e., representing endcaps).

static int vtkboneNodeSetsByGeometry::FilterPointListByCellScalar ( vtkIdTypeArray output_ids,
vtkIdTypeArray input_ids,
vtkDataSet data,
int  targetCellScalar 
)
static

Given a data set and a list of point IDs, returns a reduced list of point IDs corresponding only to points for which at least one neighbouring cell has the specified scalar value.

static int vtkboneNodeSetsByGeometry::FindNodesOnPlane ( int  axis,
float  val,
vtkIdTypeArray ids,
vtkUnstructuredGrid ug,
int  specificMaterial = -1 
)
static

Function returns the node ids of all points in the unstructured grid that lie on the defined plane. The plane is defined by two parameters: axis and val. The plane intersects the coordinate axis given by axis (=0,1,2) at val (a float). For example, to find all nodes lying on the bottom Z face of a cube, set axis=2 and val = 0.0 (or whatever the minimum Z value is in the data set).

static int vtkboneNodeSetsByGeometry::AddNodesOnPlane ( int  axis,
float  val,
const char *  name,
vtkboneFiniteElementModel model,
int  specificMaterial = -1 
)
static

Calls FindNodesOnPlane then adds the resulting set to model.

static int vtkboneNodeSetsByGeometry::AddNodesAndElementsOnPlane ( int  axis,
float  val,
const char *  name,
vtkboneFiniteElementModel model,
int  specificMaterial = -1 
)
static

Calls AddNodesOnPlane and also adds the associated elements.

static int vtkboneNodeSetsByGeometry::FindNodesIntersectingTwoPlanes ( int  axis1,
float  val1,
int  axis2,
float  val2,
vtkIdTypeArray ids,
vtkUnstructuredGrid ug,
int  specificMaterial = -1 
)
static

Function returns the node ids of all points in the unstructured grid that lie on the defined straight line. This algorithm is a modification of vtkboneNodeSetsByGeometry::FindNodesOnPlane. It is based on two planes intersecting each other.

static int vtkboneNodeSetsByGeometry::AddNodesIntersectingTwoPlanes ( int  axis1,
float  val1,
int  axis2,
float  val2,
const char *  name,
vtkboneFiniteElementModel model,
int  specificMaterial = -1 
)
static

Calls FindNodesIntersectingTwoPlanes and adds the resulting node set to model.

static int vtkboneNodeSetsByGeometry::AddNodesAndElementsIntersectingTwoPlanes ( int  axis1,
float  val1,
int  axis2,
float  val2,
const char *  name,
vtkboneFiniteElementModel model,
int  specificMaterial = -1 
)
static

Calls AddNodesIntersectingTwoPlanes and also adds the associated elements set.

static int vtkboneNodeSetsByGeometry::FindNodesIntersectingThreePlanes ( int  axisA,
float  valA,
int  axisB,
float  valB,
int  axisC,
float  valC,
vtkIdTypeArray ids,
vtkUnstructuredGrid ug,
int  specificMaterial = -1 
)
static

Function returns the node ids of all points in the unstructured grid that lie on the defined point. This algorithm is a modification of vtkboneNodeSetsByGeometry::FindNodesOnPlane. It is based on three planes intersecting each other.

static int vtkboneNodeSetsByGeometry::AddNodesIntersectingThreePlanes ( int  axisA,
float  valA,
int  axisB,
float  valB,
int  axisC,
float  valC,
const char *  name,
vtkboneFiniteElementModel model,
int  specificMaterial = -1 
)
static

Calls FindNodesIntersectingThreePlanes and adds the resulting node set to model.

static int vtkboneNodeSetsByGeometry::AddNodesAndElementsIntersectingThreePlanes ( int  axisA,
float  valA,
int  axisB,
float  valB,
int  axisC,
float  valC,
const char *  name,
vtkboneFiniteElementModel model,
int  specificMaterial = -1 
)
static

Calls AddNodesIntersectingThreePlanes and also adds the associated elements.

static int vtkboneNodeSetsByGeometry::FindNodesOnVisibleSurface ( vtkIdTypeArray visibleNodesIds,
vtkUnstructuredGrid ug,
double  normalVector[3],
int  specificMaterial = -1 
)
static

Function returns the node ids of all points that you would be able to see if you looked down upon the object from the specified dirction. This is useful for specifying which nodes should have forces applied to them if the surface is uneven. normalVector is the vector from the object towards the viewer. If the input object contains a PedigreeIds array, those values will be returned in visibleNodesIds; otherwise the point ids of the input object will be used.

static int vtkboneNodeSetsByGeometry::AddNodesOnVisibleSurface ( const char *  name,
vtkboneFiniteElementModel model,
double  normalVector[3],
int  specificMaterial = -1 
)
static

Calls FindNodesOnSurface and adds the resulting node set to model.

static int vtkboneNodeSetsByGeometry::AddNodesAndElementsOnVisibleSurface ( const char *  name,
vtkboneFiniteElementModel model,
double  normalVector[3],
int  specificMaterial = -1 
)
static

Calls AddNodesOnVisibleSurface and also adds the associated elements.


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