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
GU_AgentSubjectShape.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: GU_AgentSubjectShape.h ( GSTY Library, C++)
7
*
8
* COMMENTS:
9
*/
10
11
#ifndef __GU_AgentSubjectShape__
12
#define __GU_AgentSubjectShape__
13
14
#include "
GU_API.h
"
15
#include "
GU_AgentLayer.h
"
16
#include <
STY/STY_SubjectNamed.h
>
17
18
class
GU_PrimPacked
;
19
20
class
GU_API
GU_AgentSubjectShape
:
public
STY_SubjectNamed
21
{
22
public
:
23
// The 'agent_prim' arg is optional since it's used only for a convenience
24
// shortcut to have shape implicitly provide script binding data from agent.
25
// Otherwise we would have to employ preBinding keyword explicitly.
26
GU_AgentSubjectShape
(
const
GU_AgentLayer::ShapeBinding
& shape,
27
const
GU_PrimPacked
*agent_prim = NULL);
28
29
STY_TargetMatchStatus
30
matchesStyleTarget
(
const
STY_TargetHandle
&
target
)
const override
;
31
32
STY_BindingDataSourceHandle
33
getOverrideBindingDataSource
(
34
const
UT_StringHolder
&data_name)
const override
;
35
36
protected
:
37
UT_StringHolder
38
getSubjectName
()
const override
39
{
40
return
myShape->shapeName();
41
}
42
43
int64
44
getSubjectID
()
const override
45
{
46
return
myShape->shapeId();
47
}
48
49
private
:
50
const
GU_AgentLayer::ShapeBinding
*myShape;
51
const
GU_PrimPacked
*myAgentPrim;
52
};
53
54
#endif
55
GU_AgentSubjectShape::getSubjectID
int64 getSubjectID() const override
Definition:
GU_AgentSubjectShape.h:44
STY_Subject::matchesStyleTarget
virtual STY_TargetMatchStatus matchesStyleTarget(const STY_TargetHandle &target) const =0
Returns the information wheter the subject matches the given target.
STY_TargetMatchStatus
Contains information about the style subject match to the style target.
Definition:
STY_TargetMatchStatus.h:19
STY_SubjectNamed.h
GU_PrimPacked
Definition:
GU_PrimPacked.h:27
UT_StringHolder
Definition:
UT_StringHolder.h:999
STY_Subject::getOverrideBindingDataSource
virtual STY_BindingDataSourceHandle getOverrideBindingDataSource(const UT_StringHolder &data_name) const
UT_IntrusivePtr< const STY_Target >
GU_AgentLayer.h
int64
long long int64
Definition:
SYS_Types.h:116
target
GLenum target
Definition:
glcorearb.h:1667
GU_API
#define GU_API
Definition:
GU_API.h:14
GU_AgentSubjectShape::getSubjectName
UT_StringHolder getSubjectName() const override
Definition:
GU_AgentSubjectShape.h:38
STY_SubjectNamed
Helper class for subjects that have names and IDs.
Definition:
STY_SubjectNamed.h:19
GU_AgentLayer::ShapeBinding
Definition:
GU_AgentLayer.h:68
GU_API.h
GU_AgentSubjectShape
Definition:
GU_AgentSubjectShape.h:20
GU
GU_AgentSubjectShape.h
Generated on Sun Nov 17 2024 03:01:16 for HDK by
1.8.6