00001 // EmptyValue.h: interface for the CEmptyValue class. 00002 /* 00003 * Copyright (c) 1996-2000 Erwin Coumans <[email protected]> 00004 * 00005 * Permission to use, copy, modify, distribute and sell this software 00006 * and its documentation for any purpose is hereby granted without fee, 00007 * provided that the above copyright notice appear in all copies and 00008 * that both that copyright notice and this permission notice appear 00009 * in supporting documentation. Erwin Coumans makes no 00010 * representations about the suitability of this software for any 00011 * purpose. It is provided "as is" without express or implied warranty. 00012 * 00013 */ 00014 #if !defined _EMPTYVALUE_H 00015 #define _EMPTYVALUE_H 00016 00017 #include "Value.h" 00018 00019 class CListValue; 00020 00021 class CEmptyValue : public CPropValue 00022 { 00023 //PLUGIN_DECLARE_SERIAL (CEmptyValue,CValue) 00024 public: 00025 CEmptyValue(); 00026 virtual ~CEmptyValue(); 00027 00028 virtual const CCString & GetText(); 00029 virtual float GetNumber(); 00030 CListValue* GetPolySoup(); 00031 virtual double* GetVector3(bool bGetTransformedVec=false) { 00032 assertd(false); // don;t get vector from me 00033 return ZeroVector(); 00034 }; 00035 //virtual bool Query(int InfoTYPE, CValue** result = NULL, CValue* datain= NULL); 00036 bool IsInside(CValue* testpoint,bool bBorderInclude=true); 00037 CValue * Calc(VALUE_OPERATOR op, CValue *val); 00038 CValue * CalcFinal(VALUE_DATA_TYPE dtype, VALUE_OPERATOR op, CValue *val); 00039 virtual CValue* GetReplica(); 00040 }; 00041 00042 #endif // !defined _EMPTYVALUE_H