iMSTK
Interactive Medical Simulation Toolkit
Public Member Functions | Static Public Member Functions | List of all members
imstk::LinearProjectionConstraint Class Reference

Linear projection constraint. More...

#include <imstkLinearProjectionConstraint.h>

Public Member Functions

 LinearProjectionConstraint (const size_t &nodeId, const bool isFixed=false)
 
const std::string getTypeName () const
 
void setProjection (const size_t &nodeId, const Vec3d &p, const Vec3d &q=Vec3d::Zero())
 Form the projection.
 
void setProjectionToLine (const size_t &nodeId, const Vec3d &p)
 Form the projection.
 
void setProjectorToDirichlet (const size_t &nodeId)
 Set the projector to simulate Dirichlet conditions.
 
void setProjectorToDirichlet (const unsigned int &nodeId, const Vec3d z)
 
void reset ()
 Reset the linear projector.
 
void setValue (const Vec3d &v)
 Set the value in the restricted subspace.
 
const Mat3d & getProjector () const
 Get the projector.
 
const Vec3d & getValue () const
 Get the value.
 
const size_t & getNodeId () const
 Get the node id.
 
bool isFixed () const
 Returns true if the constraint is fixed.
 

Static Public Member Functions

static const std::string getStaticTypeName ()
 

Detailed Description

Linear projection constraint.

Definition at line 18 of file imstkLinearProjectionConstraint.h.


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