| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- /*
- ** Command & Conquer Generals(tm)
- ** Copyright 2025 Electronic Arts Inc.
- **
- ** This program is free software: you can redistribute it and/or modify
- ** it under the terms of the GNU General Public License as published by
- ** the Free Software Foundation, either version 3 of the License, or
- ** (at your option) any later version.
- **
- ** This program is distributed in the hope that it will be useful,
- ** but WITHOUT ANY WARRANTY; without even the implied warranty of
- ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ** GNU General Public License for more details.
- **
- ** You should have received a copy of the GNU General Public License
- ** along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
- /* $Header: /Commando/Code/Tools/max2w3d/nodefilt.h 6 1/14/98 10:23a Greg_h $ */
- /***********************************************************************************************
- *** Confidential - Westwood Studios ***
- ***********************************************************************************************
- * *
- * Project Name : Commando / G *
- * *
- * File Name : NODEFILT.H *
- * *
- * Programmer : Greg Hjelstrom *
- * *
- * Start Date : 06/09/97 *
- * *
- * Last Update : June 9, 1997 [GH] *
- * *
- *---------------------------------------------------------------------------------------------*
- * Functions: *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
- #ifndef NODEFILT_H
- #define NODEFILT_H
- #include "always.h"
- #include <Max.h>
- /***************************************************************
- *
- * INodeFilterClass
- *
- * This is simply an object used to accept or reject INodes
- * based on whatever criteria you desire. There are some
- * default node filters defined in this module or you can
- * create your own by inheriting the Abstract Base Class
- * INodeFilterClass and implementing the Accept_Node method.
- *
- ***************************************************************/
- class INodeFilterClass
- {
- public:
- virtual BOOL Accept_Node(INode * node, TimeValue time) = 0;
- };
- /***************************************************************
- *
- * AnyINodeFilter
- *
- * Accepts all INodes...
- *
- ***************************************************************/
- class AnyINodeFilter : public INodeFilterClass
- {
- public:
- virtual BOOL Accept_Node(INode * node, TimeValue time) { return TRUE; }
- };
- /***************************************************************
- *
- * HelperINodeFilter
- *
- * Accepts INodes which are Helper objects
- *
- ***************************************************************/
- class HelperINodeFilter : public INodeFilterClass
- {
- public:
- virtual BOOL Accept_Node(INode * node, TimeValue time);
- };
- /***************************************************************
- *
- * MeshINodeFilter
- *
- * Only accepts INodes which are Triangle meshes
- *
- ***************************************************************/
- class MeshINodeFilter : public INodeFilterClass
- {
- public:
- virtual BOOL Accept_Node(INode * node, TimeValue time);
- };
- /***************************************************************
- *
- * VisibleMeshINodeFilter
- *
- * Only accepts INodes which are Triangle meshes and are
- * currently visible
- *
- ***************************************************************/
- class VisibleMeshINodeFilter : public INodeFilterClass
- {
- public:
- virtual BOOL Accept_Node(INode * node, TimeValue time);
- };
- /***************************************************************
- *
- * VisibleHelperINodeFilter
- *
- * Only accepts INodes which are Helper objects and are
- * currently visible
- *
- ***************************************************************/
- class VisibleHelperINodeFilter : public INodeFilterClass
- {
- public:
- virtual BOOL Accept_Node(INode * node, TimeValue time);
- };
- /***************************************************************
- *
- * VisibleMeshOrHelperINodeFilter
- *
- * Only accepts INodes which are Triangle meshes or helper
- * objects and are currently visible
- *
- ***************************************************************/
- class VisibleMeshOrHelperINodeFilter : public INodeFilterClass
- {
- public:
- virtual BOOL Accept_Node(INode * node, TimeValue time);
- };
- /***************************************************************
- *
- * AnimatedINodeFilter
- *
- * Only accepts INodes which contain at least on animation
- * key.
- *
- ***************************************************************/
- class AnimatedINodeFilter : public INodeFilterClass
- {
- public:
- virtual BOOL Accept_Node(INode * node, TimeValue time);
- };
- /***************************************************************
- *
- * VisibleSelectedINodeFilter
- *
- * Only accepts INodes which are Visible and Selected
- *
- ***************************************************************/
- class VisibleSelectedINodeFilter : public INodeFilterClass
- {
- public:
- virtual BOOL Accept_Node(INode * node, TimeValue time);
- };
- #endif /*NODEFILT_H*/
|