HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SIM_GuideStatic.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  */
7 
8 #ifndef __SIM_GuideStatic_h__
9 #define __SIM_GuideStatic_h__
10 
11 #include "SIM_API.h"
12 #include <UT/UT_SymbolTable.h>
13 #include "SIM_RootDataId.h"
14 #include "SIM_Guide.h"
15 
16 /// This SIM_Guide subclass has one piece of geometry for all data of
17 /// a given type. The geometry is built in the normal way the first time
18 /// we are asked for geometry for each data type. The transform is
19 /// recalculated for each request.
21 {
22 public:
23  /// Constructor which takes a const SIM_Data as our owner.
24  explicit SIM_GuideStatic(const SIM_Data *owner,
25  bool displayonly);
26  /// Destructor for this class.
27  virtual ~SIM_GuideStatic();
28 
29 protected:
31  const SIM_RootData &root,
32  UT_DMatrix4 &xform,
33  const SIM_Time &t);
34  virtual void clearSubclass();
35 
36 private:
37  SIM_RootDataId myCachedObjectId;
38  bool myDisplayOnce;
39  static UT_SymbolMap<GU_DetailHandle *> theDetails;
40 };
41 
42 #endif
43 
virtual GU_ConstDetailHandle getGuideGeometrySubclass(const SIM_RootData &root, UT_DMatrix4 &xform, const SIM_Time &t)
#define SIM_API
Definition: SIM_API.h:10
virtual void clearSubclass()
Override this function to clear any data create by this class.