Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
nodefilt.h
Go to the documentation of this file.
1/*
2** Command & Conquer Generals Zero Hour(tm)
3** Copyright 2025 Electronic Arts Inc.
4**
5** This program is free software: you can redistribute it and/or modify
6** it under the terms of the GNU General Public License as published by
7** the Free Software Foundation, either version 3 of the License, or
8** (at your option) any later version.
9**
10** This program is distributed in the hope that it will be useful,
11** but WITHOUT ANY WARRANTY; without even the implied warranty of
12** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13** GNU General Public License for more details.
14**
15** You should have received a copy of the GNU General Public License
16** along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19/* $Header: /Commando/Code/Tools/max2w3d/nodefilt.h 6 1/14/98 10:23a Greg_h $ */
20/***********************************************************************************************
21 *** Confidential - Westwood Studios ***
22 ***********************************************************************************************
23 * *
24 * Project Name : Commando / G *
25 * *
26 * File Name : NODEFILT.H *
27 * *
28 * Programmer : Greg Hjelstrom *
29 * *
30 * Start Date : 06/09/97 *
31 * *
32 * Last Update : June 9, 1997 [GH] *
33 * *
34 *---------------------------------------------------------------------------------------------*
35 * Functions: *
36 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
37
38
39#ifndef NODEFILT_H
40#define NODEFILT_H
41
42#include "always.h"
43#include <Max.h>
44
45/***************************************************************
46*
47* INodeFilterClass
48*
49* This is simply an object used to accept or reject INodes
50* based on whatever criteria you desire. There are some
51* default node filters defined in this module or you can
52* create your own by inheriting the Abstract Base Class
53* INodeFilterClass and implementing the Accept_Node method.
54*
55***************************************************************/
57{
58public:
59 virtual BOOL Accept_Node(INode * node, TimeValue time) = 0;
60};
61
62
63/***************************************************************
64*
65* AnyINodeFilter
66*
67* Accepts all INodes...
68*
69***************************************************************/
71{
72public:
73 virtual BOOL Accept_Node(INode * node, TimeValue time) { return TRUE; }
74};
75
76
77/***************************************************************
78*
79* HelperINodeFilter
80*
81* Accepts INodes which are Helper objects
82*
83***************************************************************/
85{
86public:
87 virtual BOOL Accept_Node(INode * node, TimeValue time);
88};
89
90
91/***************************************************************
92*
93* MeshINodeFilter
94*
95* Only accepts INodes which are Triangle meshes
96*
97***************************************************************/
99{
100public:
101 virtual BOOL Accept_Node(INode * node, TimeValue time);
102};
103
104/***************************************************************
105*
106* VisibleMeshINodeFilter
107*
108* Only accepts INodes which are Triangle meshes and are
109* currently visible
110*
111***************************************************************/
113{
114public:
115 virtual BOOL Accept_Node(INode * node, TimeValue time);
116};
117
118/***************************************************************
119*
120* VisibleHelperINodeFilter
121*
122* Only accepts INodes which are Helper objects and are
123* currently visible
124*
125***************************************************************/
127{
128public:
129 virtual BOOL Accept_Node(INode * node, TimeValue time);
130};
131
132
133/***************************************************************
134*
135* VisibleMeshOrHelperINodeFilter
136*
137* Only accepts INodes which are Triangle meshes or helper
138* objects and are currently visible
139*
140***************************************************************/
142{
143public:
144 virtual BOOL Accept_Node(INode * node, TimeValue time);
145};
146
147
148/***************************************************************
149*
150* AnimatedINodeFilter
151*
152* Only accepts INodes which contain at least on animation
153* key.
154*
155***************************************************************/
157{
158public:
159 virtual BOOL Accept_Node(INode * node, TimeValue time);
160};
161
162
163/***************************************************************
164*
165* VisibleSelectedINodeFilter
166*
167* Only accepts INodes which are Visible and Selected
168*
169***************************************************************/
171{
172public:
173 virtual BOOL Accept_Node(INode * node, TimeValue time);
174};
175
176
177
178#endif /*NODEFILT_H*/
#define TRUE
Definition BaseType.h:109
#define BOOL
Definition Wnd_File.h:57
virtual BOOL Accept_Node(INode *node, TimeValue time)
Definition nodefilt.cpp:241
virtual BOOL Accept_Node(INode *node, TimeValue time)
Definition nodefilt.h:73
virtual BOOL Accept_Node(INode *node, TimeValue time)
Definition nodefilt.cpp:69
virtual BOOL Accept_Node(INode *node, TimeValue time)=0
virtual BOOL Accept_Node(INode *node, TimeValue time)
Definition nodefilt.cpp:95
virtual BOOL Accept_Node(INode *node, TimeValue time)
Definition nodefilt.cpp:166
virtual BOOL Accept_Node(INode *node, TimeValue time)
Definition nodefilt.cpp:131
virtual BOOL Accept_Node(INode *node, TimeValue time)
Definition nodefilt.cpp:198
virtual BOOL Accept_Node(INode *node, TimeValue time)
Definition nodefilt.cpp:278