VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtRelVerticesNotEqualPredicate Class Reference

Contains the DtRelVerticesNotEqualPredicate class declaration. More...

Inheritance diagram for DtRelVerticesNotEqualPredicate:
Inheritance graph
[legend]

Public Member Functions

 DtRelVerticesNotEqualPredicate (double tolerance=double(0.05), bool negate=false)
 default constructor
virtual ~DtRelVerticesNotEqualPredicate ()
 destructor
 DtRelVerticesNotEqualPredicate (const DtRelVerticesNotEqualPredicate &orig)
 copy constructor
DtRelVerticesNotEqualPredicateoperator= (const DtRelVerticesNotEqualPredicate &orig)
 assignment operator
virtual DtVrfObjectPredicateclone () const
 clone function
virtual void setLocalVertices (const DtLocalVertexList &vertices)
virtual const DtLocalVertexListlocalVertices () const
virtual double getTolerance () const
 Tolerance to adjust for floating point error.
virtual void setTolerance (double tolerance)
- Public Member Functions inherited from DtVrfObjectPredicate
 DtVrfObjectPredicate (bool negate=false)
 constructor
virtual ~DtVrfObjectPredicate ()
 destructor
 DtVrfObjectPredicate (const DtVrfObjectPredicate &orig)
 copy constructor
DtVrfObjectPredicateoperator= (const DtVrfObjectPredicate &orig)
 assignment operator
bool operator== (const DtVrfObjectPredicate &orig) const
 Equality operators used to compare predicates.
bool operator!= (const DtVrfObjectPredicate &orig) const
virtual bool negated () const
virtual void setNegate (bool negate)
bool isTrue (const DtVrfObject *vrfObject)
 This function evaluates the eval function (to be defined in derived classes) given a DtVrfObject and returns the result, negated if indicated.
virtual bool canBeTrue (const DtVrfObject *vrfObject)
virtual bool canBeFalse (const DtVrfObject *vrfObject)
virtual void stringRep (std::ostream &str, int indentLevel=0) const

Protected Member Functions

virtual bool eval (const DtVrfObject *object)
 The actual test this predicate performs.
virtual bool predicateEqual (const DtVrfObjectPredicate &orig) const
 Used by equality operator used to compare predicates.
void emptyVertexList ()
 Not virtual because they are called from constructors, destructor.
void copyVertexList (const DtLocalVertexList &vertices)
- Protected Member Functions inherited from DtVrfObjectPredicate
virtual bool canEvalTrue (const DtVrfObject *vrfObject)
virtual bool canEvalFalse (const DtVrfObject *vrfObject)
virtual void typeSpecificStringRep (std::ostream &str, int indentLevel) const
 Override in specific subclasses to print the predicate description to the stream.

Protected Attributes

DtLocalVertexList myVertices
double myTolerance
- Protected Attributes inherited from DtVrfObjectPredicate
bool myNegated

Additional Inherited Members

- Static Public Member Functions inherited from DtVrfObjectPredicate
static const DtVrfObjectPredicatenullPredicate ()
 Returns an instance of a DtNullVrfObjectPredicate.

Detailed Description

Contains the DtRelVerticesNotEqualPredicate class declaration.

Instances of DtRelVerticesNotEqualPredicate are used to compare vectors. A tolerance is added to counter small changes, such as those caused by floating point error.

Constructor & Destructor Documentation

DtRelVerticesNotEqualPredicate::DtRelVerticesNotEqualPredicate ( double  tolerance = double(0.05),
bool  negate = false 
)

default constructor

virtual DtRelVerticesNotEqualPredicate::~DtRelVerticesNotEqualPredicate ( )
virtual

destructor

DtRelVerticesNotEqualPredicate::DtRelVerticesNotEqualPredicate ( const DtRelVerticesNotEqualPredicate orig)

copy constructor

Member Function Documentation

DtRelVerticesNotEqualPredicate& DtRelVerticesNotEqualPredicate::operator= ( const DtRelVerticesNotEqualPredicate orig)

assignment operator

virtual DtVrfObjectPredicate* DtRelVerticesNotEqualPredicate::clone ( ) const
virtual

clone function

Implements DtVrfObjectPredicate.

virtual void DtRelVerticesNotEqualPredicate::setLocalVertices ( const DtLocalVertexList vertices)
virtual
virtual const DtLocalVertexList& DtRelVerticesNotEqualPredicate::localVertices ( ) const
virtual
virtual double DtRelVerticesNotEqualPredicate::getTolerance ( ) const
virtual

Tolerance to adjust for floating point error.

virtual void DtRelVerticesNotEqualPredicate::setTolerance ( double  tolerance)
virtual
virtual bool DtRelVerticesNotEqualPredicate::eval ( const DtVrfObject object)
protectedvirtual

The actual test this predicate performs.

Implements DtVrfObjectPredicate.

virtual bool DtRelVerticesNotEqualPredicate::predicateEqual ( const DtVrfObjectPredicate orig) const
protectedvirtual

Used by equality operator used to compare predicates.

Reimplemented from DtVrfObjectPredicate.

void DtRelVerticesNotEqualPredicate::emptyVertexList ( )
protected

Not virtual because they are called from constructors, destructor.

void DtRelVerticesNotEqualPredicate::copyVertexList ( const DtLocalVertexList vertices)
protected

Member Data Documentation

DtLocalVertexList DtRelVerticesNotEqualPredicate::myVertices
protected
double DtRelVerticesNotEqualPredicate::myTolerance
protected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)