HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SIM_GuideShared.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_GuideShared_h__
9
#define __SIM_GuideShared_h__
10
11
#include "
SIM_API.h
"
12
#include "
SIM_Time.h
"
13
#include "
SIM_RootDataId.h
"
14
#include "
SIM_Guide.h
"
15
16
/// This SIM_Guide subclass caches the geometry and transform from the first
17
/// object it is asked to build for. Subsequent requests for other objects
18
/// return null geometry. This way this guide geometry will only be rendered
19
/// once, not once for each object it is attached to.
20
class
SIM_API
SIM_GuideShared
:
public
SIM_Guide
21
{
22
public
:
23
/// Constructor which takes a const SIM_Data as our owner.
24
explicit
SIM_GuideShared
(
const
SIM_Data
*owner,
25
bool
displayonce);
26
/// Destructor for this class.
27
~
SIM_GuideShared
()
override
;
28
29
protected
:
30
GU_ConstDetailHandle
getGuideGeometrySubclass
(
31
const
SIM_RootData
&root,
32
UT_DMatrix4
&xform,
33
const
SIM_Time
&
t
)
override
;
34
int64
getMemorySizeSubclass
()
const override
;
35
void
clearSubclass
()
override
;
36
37
private
:
38
GU_DetailHandle
myDetailHandle;
39
SIM_RootDataId
myCachedObjectId;
40
const
bool
myDisplayOnce;
41
};
42
43
#endif
44
SIM_GuideShared
Definition:
SIM_GuideShared.h:20
UT_Matrix4T< double >
SIM_RootData
Definition:
SIM_RootData.h:16
SIM_Guide::getMemorySizeSubclass
virtual int64 getMemorySizeSubclass() const
SIM_Guide.h
SIM_Time
Definition:
SIM_Time.h:19
SIM_Data
Definition:
SIM_Data.h:137
SIM_Guide
Definition:
SIM_Guide.h:25
SIM_Time.h
SIM_RootDataId.h
SIM_API.h
GU_ConstDetailHandle
Definition:
GU_DetailHandle.h:176
SIM_RootDataId
Definition:
SIM_RootDataId.h:17
int64
long long int64
Definition:
SYS_Types.h:116
t
GLdouble t
Definition:
glad.h:2397
GU_DetailHandle
Definition:
GU_DetailHandle.h:38
SIM_Guide::getGuideGeometrySubclass
virtual GU_ConstDetailHandle getGuideGeometrySubclass(const SIM_RootData &root, UT_DMatrix4 &xform, const SIM_Time &t)
SIM_API
#define SIM_API
Definition:
SIM_API.h:12
SIM_Guide::clearSubclass
virtual void clearSubclass()
Override this function to clear any data create by this class.
SIM
SIM_GuideShared.h
Generated on Fri Nov 8 2024 03:41:26 for HDK by
1.8.6