00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Side Effects Software Inc. 00008 * 123 Front Street West, Suite 1401 00009 * Toronto, Ontario 00010 * Canada M5J 2M2 00011 * 416-504-9876 00012 */ 00013 00014 #ifndef __SIM_ConRelNone_h__ 00015 #define __SIM_ConRelNone_h__ 00016 00017 #include "SIM_API.h" 00018 #include "SIM_OptionsUser.h" 00019 #include "SIM_ConRel.h" 00020 00021 /// The simplest type of constraint: forcing the geometry to exactly match 00022 /// the anchor position and/or orientation. 00023 class SIM_API SIM_ConRelNone : public SIM_ConRel 00024 { 00025 protected: 00026 explicit SIM_ConRelNone(const SIM_DataFactory *factory); 00027 virtual ~SIM_ConRelNone(); 00028 00029 virtual void buildConRelGuideSpatial( 00030 const GU_DetailHandle &gdh, 00031 const SIM_Options &options, 00032 const UT_Vector3 &anchorPos1, 00033 const UT_Vector3 &anchorPos2) const; 00034 virtual void setStateDistanceSubclass(fpreal distance); 00035 virtual fpreal getStateDistanceSubclass() const; 00036 00037 private: 00038 static const SIM_DopDescription *getConRelNoneDopDescription(); 00039 00040 fpreal myStateDistance; 00041 00042 DECLARE_STANDARD_GETCASTTOTYPE(); 00043 DECLARE_DATAFACTORY(SIM_ConRelNone, 00044 SIM_ConRel, 00045 "No Constraint Relationship", 00046 getConRelNoneDopDescription()); 00047 }; 00048 00049 #endif
1.5.9