2 * Operator1Expr.h: interface for the COperator1Expr class.
3 * Copyright (c) 1996-2000 Erwin Coumans <coockie@acm.org>
5 * Permission to use, copy, modify, distribute and sell this software
6 * and its documentation for any purpose is hereby granted without fee,
7 * provided that the above copyright notice appear in all copies and
8 * that both that copyright notice and this permission notice appear
9 * in supporting documentation. Erwin Coumans makes no
10 * representations about the suitability of this software for any
11 * purpose. It is provided "as is" without express or implied warranty.
15 /** \file Operator1Expr.h
16 * \ingroup expressions
19 #if !defined(AFX_OPERATOR1EXPR_H__A1653901_BF41_11D1_A51C_00A02472FC58__INCLUDED_)
20 #define AFX_OPERATOR1EXPR_H__A1653901_BF41_11D1_A51C_00A02472FC58__INCLUDED_
22 #include "Expression.h"
24 class COperator1Expr : public CExpression
26 //PLUGIN_DECLARE_SERIAL_EXPRESSION (COperator1Expr,CExpression)
31 virtual bool MergeExpression(CExpression* otherexpr);
32 virtual void BroadcastOperators(VALUE_OPERATOR op);
34 virtual unsigned char GetExpressionID() { return COPERATOR1EXPRESSIONID;};
35 CExpression* CheckLink(std::vector<CBrokenLinkInfo*>& brokenlinks);
36 //virtual bool IsInside(float x,float y,float z,bool bBorderInclude = true);
37 virtual bool NeedsRecalculated();
38 void ClearModified() {
40 m_lhs->ClearModified();
42 virtual CValue* Calculate();
43 COperator1Expr(VALUE_OPERATOR op, CExpression *lhs);
45 virtual ~COperator1Expr();
54 #ifdef WITH_CXX_GUARDEDALLOC
56 void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE:COperator1Expr"); }
57 void operator delete( void *mem ) { MEM_freeN(mem); }
61 #endif // !defined(AFX_OPERATOR1EXPR_H__A1653901_BF41_11D1_A51C_00A02472FC58__INCLUDED_)