-
首页
-
C4D R23.110 C++ SDK
DescID Class Reference
Library
»
描述
#include <lib_description.h>
详细描述
An ID class for description elements. Contains a stack of
DescLevel
对象。
A description ID is used to exactly identify a parameter value.
-
For first-level values (like a REAL (description element) or LONG (description element) value) it only consists of one
DescLevel
.
-
For more complex datatypes like VECTOR (description element) and GRADIENT (description element) it can consist of
2
or more levels.
构造函数 & 析构函数文档编制
◆
DescID()
[1/6]
Default constructor.
◆
DescID()
[2/6]
Copy constructor.
-
参数
-
◆
DescID()
[3/6]
Creates a description ID with one level.
-
参数
-
◆
DescID()
[4/6]
Creates a description ID with one level.
-
参数
-
◆
DescID()
[5/6]
Creates a description ID with two levels.
-
参数
-
[in]
|
id1
|
First level.
|
[in]
|
id2
|
Second level.
|
◆
DescID()
[6/6]
Creates an ID with three levels.
-
参数
-
[in]
|
id1
|
First level.
|
[in]
|
id2
|
Second level.
|
[in]
|
id3
|
Third level.
|
◆
~DescID()
Default destructor.
成员函数文档编制
◆
SetId()
Sets the highest level to
subid
.
-
参数
-
[in]
|
subid
|
New top level.
|
◆
PushId()
Pushes a new level onto the stack.
-
参数
-
[in]
|
subid
|
Level to push.
|
◆
PopId()
Pop the highest level from the stack.
◆
operator[]()
Accesses the level at position
pos
in the stack.
-
参数
-
-
返回
-
The level at the specified position.
◆
operator=()
Assignment operator. Assigns
id
to the description ID.
-
参数
-
[in]
|
id
|
Right operand. Source description ID.
|
-
返回
-
Left operant.
◆
operator==()
Equality operator. Checks if all levels are equal.
-
参数
-
[in]
|
d
|
Right operand description ID.
|
-
返回
-
true
if description IDs are equal, otherwise
false
.
◆
operator!=()
Inequality operator. Checks if any level is different.
-
参数
-
[in]
|
d
|
Right operand description ID.
|
-
返回
-
true
if description IDs are not equal, otherwise
false
.
◆
operator<<()
Get the result of popping levels from the bottom of the stack.
-
参数
-
[in]
|
shift
|
Number of levels to pop.
0
<=
shift
<
GetDepth()
.
|
-
返回
-
Resulting description ID after popping level(s).
◆
operator+=()
Add operator. Merges two description IDs.
-
参数
-
[in]
|
s
|
Right operand. Source description ID.
|
-
返回
-
Left operant.
◆
Read()
Reads the description ID from
hf
.
-
参数
-
[in]
|
hf
|
The hyper file to read from. The caller owns the pointed hyper file.
|
-
返回
-
true
if successful, otherwise
false
.
◆
Write()
Writes the description ID to
hf
.
-
参数
-
[in]
|
hf
|
The hyper file to write to. The caller owns the pointed hyper file.
|
-
返回
-
true
if successful, otherwise
false
.
◆
GetDepth()
Gets the depth of the stack, i.e. the number of levels.
-
返回
-
The depth of the stack.
◆
IsPartOf()
Checks if the description ID is part of
cmp
and assigns the length of the match to
pos
.
-
参数
-
[in]
|
cmp
|
The super description ID.
|
[out]
|
pos
|
If not
nullptr
this is assigned the length of the match.
|
-
返回
-
true
if the description ID matches the lowest part of
cmp
, otherwise
false
.
◆
GetHashCode()
Gets a hash code for the description ID.
-
由于
-
R17.032
-
返回
-
The hash code.
Friends And Related Function Documentation
◆
operator+
Add operator. Merges two description IDs.
-
参数
-
[in]
|
v1
|
Left operand.
|
[in]
|
v2
|
Right operand.
|
-
返回
-
Result.
Member Data Documentation
◆
_private