HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OBJ_Fog.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: OBJ library (C++)
7  *
8  * COMMENTS: Atmosphere object definition
9  */
10 
11 #ifndef __OBJ_Fog_h__
12 #define __OBJ_Fog_h__
13 
14 #include "OBJ_API.h"
15 #include "OBJ_Node.h"
16 
17 class obj_Scene;
18 
20 {
23  I_N_FOG_INDICES // should always be last in the list
24 };
25 
26 class OBJ_API OBJ_Fog : public OBJ_Node
27 {
28 public:
29  OBJ_Fog(OP_Network *, const char *, OP_Operator *);
30  virtual ~OBJ_Fog();
31 
32  static PRM_Template *getObsolete();
33  static PRM_Template *getTemplateList();
34  static OP_Node *myConstructor(OP_Network *net,
35  const char *name, OP_Operator *entry);
36 
37  virtual OBJ_OBJECT_TYPE getObjectType() const;
38  virtual OBJ_Fog *castToOBJFog() { return this; }
39 
41  UT_BitArray &selection,
42  const CH_ChannelList &channels);
44  UT_StringArray &names,
45  PRM_ParmNameMap &nmap);
46 
47  void RISHADER(UT_String &str, fpreal t);
48 
49 protected:
50 
51  // Used to get pointer to indirection indices for each object type
52  virtual int *getIndirect() const
53  { return fogIndirect; }
54 
55 private:
56 
57  static int *fogIndirect;
58 };
59 
60 #endif
virtual int collectPropertiesFromParms(PI_EditScriptedParms &editparms, UT_StringArray &names, PRM_ParmNameMap &nmap)
virtual OBJ_OBJECT_TYPE getObjectType() const =0
virtual int * getIndirect() const
Definition: OBJ_Fog.h:52
OBJ_FogIndex
Definition: OBJ_Fog.h:19
virtual int collectPropertiesFromChannels(PI_EditScriptedParms &editparms, UT_BitArray &selection, const CH_ChannelList &channels)
GLuint const GLchar * name
Definition: glcorearb.h:785
virtual OBJ_Fog * castToOBJFog()
Definition: OBJ_Fog.h:38
double fpreal
Definition: SYS_Types.h:269
static PRM_Template * getObsolete()
#define OBJ_API
Definition: OBJ_API.h:10
OBJ_OBJECT_TYPE
Definition: OBJ_Node.h:70