![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2006 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: relVerticesNotEqPred.h,v $ $Revision: 1.2 $ $State: Exp $ 00007 *******************************************************************************/ 00008 #ifndef relVerticesNotEqPred_H_ 00009 #define relVerticesNotEqPred_H_ 00010 00013 00015 00016 #include "vrfobjcore/vrfObjPred.h" 00017 #include "vrfutil/lclVtxList.h" 00018 00023 #include "vrfobjcore/vrfobjcoreDefines.h" 00024 class DT_DLL_vrfobjcore DtRelVerticesNotEqualPredicate : public DtVrfObjectPredicate 00025 { 00026 public: 00028 DtRelVerticesNotEqualPredicate(double tolerance = double(0.05), 00029 bool negate = false); 00030 00032 virtual ~DtRelVerticesNotEqualPredicate(); 00033 00035 DtRelVerticesNotEqualPredicate(const DtRelVerticesNotEqualPredicate& orig); 00036 00038 DtRelVerticesNotEqualPredicate& operator=( 00039 const DtRelVerticesNotEqualPredicate& orig); 00040 00042 virtual DtVrfObjectPredicate* clone() const; 00043 00044 00045 virtual void setLocalVertices(const DtLocalVertexList& vertices); 00046 virtual const DtLocalVertexList& localVertices() const; 00047 00049 virtual double getTolerance() const; 00050 virtual void setTolerance(double tolerance); 00051 00052 protected: 00053 00055 virtual bool eval(const DtVrfObject* object); 00056 00058 virtual bool predicateEqual(const DtVrfObjectPredicate& orig) const; 00059 00061 void emptyVertexList(); 00062 void copyVertexList(const DtLocalVertexList& vertices); 00063 00064 protected: 00065 00066 DtLocalVertexList myVertices; 00067 double myTolerance; 00068 }; 00069 00070 #endif 00071