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

Useful methods for creating and manipulating constraints. More...

#include <vtkboneConstraintUtilities.h>

Inheritance diagram for vtkboneConstraintUtilities:
Inheritance graph
[legend]
Collaboration diagram for vtkboneConstraintUtilities:
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 vtkboneConstraintUtilitiesNew ()
 
static int IsTypeOf (const char *type)
 
static vtkboneConstraintUtilitiesSafeDownCast (vtkObject *o)
 
static vtkboneConstraintCreateBoundaryCondition (vtkIdTypeArray *nodeIds, vtkDataArray *senses, vtkDataArray *displacements, const char *name)
 
static vtkboneConstraintCreateBoundaryCondition (vtkIdTypeArray *nodeIds, int sense, double displacement, const char *name)
 
static vtkboneConstraintCreateBoundaryCondition (vtkIdType nodeId, int sense, double displacement, const char *name)
 
static vtkboneConstraintCreateFixedNodes (vtkIdTypeArray *ids, const char *name)
 
static vtkboneConstraintCreateFixedNodes (vtkIdType id, const char *name)
 
static vtkboneConstraintCreateAppliedLoad (vtkIdTypeArray *elementIds, vtkDataArray *distributions, vtkDataArray *senses, vtkDataArray *forces, const char *name)
 
static vtkboneConstraintCreateAppliedLoad (vtkIdTypeArray *elementIds, int distribution, vtkDataArray *senses, vtkDataArray *forces, const char *name)
 
static vtkboneConstraintCreateAppliedLoad (vtkIdTypeArray *elementIds, int distribution, int sense, double force, const char *name)
 
static vtkboneConstraintCreateAppliedLoad (vtkIdType elementId, int distribution, int sense, double force, const char *name)
 
static vtkboneConstraintGatherDisplacementConstraints (vtkboneConstraint *arg_constraint)
 
static vtkboneConstraintGatherDisplacementConstraints (vtkboneConstraintCollection *arg_constraints)
 
static vtkboneConstraintGatherDisplacementConstraints (vtkboneFiniteElementModel *model)
 
static vtkboneConstraintGatherZeroValuedDisplacementConstraints (vtkboneConstraint *arg_constraint, double tol)
 
static vtkboneConstraintGatherZeroValuedDisplacementConstraints (vtkboneConstraintCollection *arg_constraints, double tol)
 
static vtkboneConstraintGatherZeroValuedDisplacementConstraints (vtkboneFiniteElementModel *model, double tol)
 
static vtkboneConstraintGatherNonzeroDisplacementConstraints (vtkboneConstraint *arg_constraint, double tol)
 
static vtkboneConstraintGatherNonzeroDisplacementConstraints (vtkboneConstraintCollection *arg_constraints, double tol)
 
static vtkboneConstraintGatherNonzeroDisplacementConstraints (vtkboneFiniteElementModel *model, double tol)
 
static vtkboneConstraintDistributeConstraintToNodes (vtkUnstructuredGrid *geometry, vtkboneConstraint *arg_constraint)
 
static vtkboneConstraintDistributeForceConstraintsToNodes (vtkUnstructuredGrid *geometry, vtkboneConstraintCollection *arg_constraints)
 
static vtkboneConstraintDistributeForceConstraintsToNodes (vtkboneFiniteElementModel *model)
 
- 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

 vtkboneConstraintUtilities ()
 
 ~vtkboneConstraintUtilities ()
 
- 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

Useful methods for creating and manipulating constraints.

See also
vtkboneConstraint vtkboneConstraintCollection vtkboneFiniteElementModel

Definition at line 38 of file vtkboneConstraintUtilities.h.

Constructor & Destructor Documentation

vtkboneConstraintUtilities::vtkboneConstraintUtilities ( )
protected
vtkboneConstraintUtilities::~vtkboneConstraintUtilities ( )
protected

Member Function Documentation

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

Reimplemented from vtkObjectBase.

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

Reimplemented from vtkObject.

static vtkboneConstraint* vtkboneConstraintUtilities::CreateBoundaryCondition ( vtkIdTypeArray nodeIds,
vtkDataArray senses,
vtkDataArray displacements,
const char *  name 
)
static

Generates a displacement constraint along the specified senses with the specified amount of displacement. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::CreateBoundaryCondition ( vtkIdTypeArray nodeIds,
int  sense,
double  displacement,
const char *  name 
)
static

Generates a displacement constraint along the specified senses with the specified amount of displacement. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::CreateBoundaryCondition ( vtkIdType  nodeId,
int  sense,
double  displacement,
const char *  name 
)
static

Generates a displacement constraint along the specified senses with the specified amount of displacement. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::CreateFixedNodes ( vtkIdTypeArray ids,
const char *  name 
)
static

Generates a fixed constraint, with displacement 0 applied to all senses of the specified nodes. The same result can be obtained by calling CreateBoundaryCondition for each sense, and with displacement zero. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::CreateFixedNodes ( vtkIdType  id,
const char *  name 
)
static

Generates a fixed constraint, with displacement 0 applied to all senses of the specified nodes. The same result can be obtained by calling CreateBoundaryCondition for each sense, and with displacement zero. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::CreateAppliedLoad ( vtkIdTypeArray elementIds,
vtkDataArray distributions,
vtkDataArray senses,
vtkDataArray forces,
const char *  name 
)
static

Generates a force constraint along the specified senses with the specified amount of force. The distribution of the force on the elements must be specified with the parameter distribution; which must take a value of the enum Distribution_t defined in vtkboneConstraint. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::CreateAppliedLoad ( vtkIdTypeArray elementIds,
int  distribution,
vtkDataArray senses,
vtkDataArray forces,
const char *  name 
)
static

Generates a force constraint along the specified senses with the specified amount of force. The distribution of the force on the elements must be specified with the parameter distribution; which must take a value of the enum Distribution_t defined in vtkboneConstraint. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::CreateAppliedLoad ( vtkIdTypeArray elementIds,
int  distribution,
int  sense,
double  force,
const char *  name 
)
static

Generates a force constraint along the specified senses with the specified amount of force. The distribution of the force on the elements must be specified with the parameter distribution; which must take a value of the enum Distribution_t defined in vtkboneConstraint. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::CreateAppliedLoad ( vtkIdType  elementId,
int  distribution,
int  sense,
double  force,
const char *  name 
)
static

Generates a force constraint along the specified senses with the specified amount of force. The distribution of the force on the elements must be specified with the parameter distribution; which must take a value of the enum Distribution_t defined in vtkboneConstraint. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::GatherDisplacementConstraints ( vtkboneConstraint arg_constraint)
static

Gathers all the displacement constraints. In the case of duplicates, one is arbitrarily chosen. The resulting vtkboneConstraint is sorted by index, then by sense. Any input force constraints are ignored. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::GatherDisplacementConstraints ( vtkboneConstraintCollection arg_constraints)
static

Gathers all the displacement constraints. In the case of duplicates, one is arbitrarily chosen. The resulting vtkboneConstraint is sorted by index, then by sense. Any input force constraints are ignored. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::GatherDisplacementConstraints ( vtkboneFiniteElementModel model)
static

Gathers all the displacement constraints. In the case of duplicates, one is arbitrarily chosen. The resulting vtkboneConstraint is sorted by index, then by sense. Any input force constraints are ignored. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::GatherZeroValuedDisplacementConstraints ( vtkboneConstraint arg_constraint,
double  tol 
)
static

Same as GatherDisplacementConstraints, but only takes entries with VALUE of absolute value less than or equal to tol. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::GatherZeroValuedDisplacementConstraints ( vtkboneConstraintCollection arg_constraints,
double  tol 
)
static

Same as GatherDisplacementConstraints, but only takes entries with VALUE of absolute value less than or equal to tol. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::GatherZeroValuedDisplacementConstraints ( vtkboneFiniteElementModel model,
double  tol 
)
static

Same as GatherDisplacementConstraints, but only takes entries with VALUE of absolute value less than or equal to tol. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::GatherNonzeroDisplacementConstraints ( vtkboneConstraint arg_constraint,
double  tol 
)
static

Same as GatherDisplacementConstraints, but only takes entries with VALUE of absolute value greater than tol. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::GatherNonzeroDisplacementConstraints ( vtkboneConstraintCollection arg_constraints,
double  tol 
)
static

Same as GatherDisplacementConstraints, but only takes entries with VALUE of absolute value greater than tol. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::GatherNonzeroDisplacementConstraints ( vtkboneFiniteElementModel model,
double  tol 
)
static

Same as GatherDisplacementConstraints, but only takes entries with VALUE of absolute value greater than tol. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::DistributeConstraintToNodes ( vtkUnstructuredGrid geometry,
vtkboneConstraint arg_constraint 
)
static

Distributes the constraint values on elements among the nodes of the elements, according to the DISTRIBUTION field of the constraint. If newConstraintName is not set, "CONSTRAINTS DISTRIBUTED TO NODES" will be used. The resulting vtkboneConstraint is sorted by index, then by sense. This method will also accept constraints applied to nodes, in which case, the are simply sorted, and summed where multiple entries refer to the same node and sense. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::DistributeForceConstraintsToNodes ( vtkUnstructuredGrid geometry,
vtkboneConstraintCollection arg_constraints 
)
static

Distributes the force constraint values on elements among the nodes of the elements, according to the DISTRIBUTION field of the constraint. If newConstraintName is not set, "FORCE CONSTRAINTS DISTRIBUTED TO NODES" will be used. The resulting vtkboneConstraint is sorted by index, then by sense. This method will also accept force constraints applied to nodes, in which case, the are simply sorted, and summed where multiple entries refer to the same node and sense. Any input displacement constraints are ignored. The user is responsible for deleting the returned object.

static vtkboneConstraint* vtkboneConstraintUtilities::DistributeForceConstraintsToNodes ( vtkboneFiniteElementModel model)
static

Distributes the force constraint values on elements among the nodes of the elements, according to the DISTRIBUTION field of the constraint. If newConstraintName is not set, "FORCE CONSTRAINTS DISTRIBUTED TO NODES" will be used. The resulting vtkboneConstraint is sorted by index, then by sense. This method will also accept force constraints applied to nodes, in which case, the are simply sorted, and summed where multiple entries refer to the same node and sense. Any input displacement constraints are ignored. The user is responsible for deleting the returned object.


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