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_Constraint.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_Constraint_h__
9
#define __SIM_Constraint_h__
10
11
#include "
SIM_API.h
"
12
#include "
SIM_RelationshipData.h
"
13
14
class
SIM_Relationship
;
15
class
SIM_ConAnchor
;
16
class
SIM_ConRel
;
17
18
/// The intention of this class is to act as a flexible container for
19
/// constraint data. The individual components of the container (the
20
/// relationship, the anchors, etc.) can each be switched at need, without
21
/// affecting the other components.
22
class
SIM_API
SIM_Constraint
:
public
SIM_RelationshipData
23
{
24
public
:
25
void
initConstraint(
const
SIM_Relationship
*relationship);
26
SIM_ConRel
*getConRel(
bool
followactive =
true
);
27
const
SIM_ConAnchor
*getAnchor(
int
index
)
const
;
28
29
protected
:
30
explicit
SIM_Constraint
(
const
SIM_DataFactory
*factory);
31
~
SIM_Constraint
()
override
;
32
33
long
getGuideParmVersionSubclass
()
const override
;
34
SIM_Guide
*
createGuideObjectSubclass
()
const override
;
35
void
buildGuideGeometrySubclass
(
36
const
SIM_RootData
&root,
37
const
SIM_Options
&options,
38
const
GU_DetailHandle
&gdh,
39
UT_DMatrix4
*xform,
40
const
SIM_Time
&
t
)
const override
;
41
42
private
:
43
const
SIM_ConRel
*getConstConRel(
bool
followactive =
true
)
const
;
44
45
static
const
SIM_DopDescription
*getDopDescription();
46
47
static
bool
theMakingStateTransitions;
48
49
friend
class
SIM_ConstraintIterator
;
50
51
DECLARE_STANDARD_GETCASTTOTYPE
();
52
DECLARE_DATAFACTORY
(
SIM_Constraint
,
53
SIM_RelationshipData
,
54
"Constraint"
,
55
getDopDescription());
56
};
57
58
#endif
59
DECLARE_STANDARD_GETCASTTOTYPE
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition:
SIM_DataUtils.h:50
UT_Matrix4T< double >
SIM_RootData
Definition:
SIM_RootData.h:16
SIM_ConRel
Definition:
SIM_ConRel.h:35
SIM_Time
Definition:
SIM_Time.h:19
SIM_Guide
Definition:
SIM_Guide.h:25
SIM_Relationship
Definition:
SIM_Relationship.h:48
SIM_ConAnchor
Definition:
SIM_ConAnchor.h:26
SIM_Data::buildGuideGeometrySubclass
virtual void buildGuideGeometrySubclass(const SIM_RootData &root, const SIM_Options &options, const GU_DetailHandle &gdh, UT_DMatrix4 *xform, const SIM_Time &t) const
DECLARE_DATAFACTORY
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition:
SIM_DataUtils.h:63
SIM_API.h
SIM_RelationshipData
Definition:
SIM_RelationshipData.h:17
SIM_DopDescription
Definition:
SIM_DopDescription.h:23
SIM_DataFactory
Definition:
SIM_DataFactory.h:33
t
GLdouble t
Definition:
glad.h:2397
SIM_Options
Definition:
SIM_Options.h:27
GU_DetailHandle
Definition:
GU_DetailHandle.h:38
SIM_RelationshipData.h
index
GLuint index
Definition:
glcorearb.h:786
SIM_API
#define SIM_API
Definition:
SIM_API.h:12
SIM_Constraint
Definition:
SIM_Constraint.h:22
SIM_Data::getGuideParmVersionSubclass
virtual long getGuideParmVersionSubclass() const
SIM_ConstraintIterator
Definition:
SIM_ConstraintIterator.h:54
SIM_Data::createGuideObjectSubclass
virtual SIM_Guide * createGuideObjectSubclass() const
SIM
SIM_Constraint.h
Generated on Tue Dec 17 2024 03:41:46 for HDK by
1.8.6