内容表
This page lists the renamed symbols in
Cinema 4D
R15.
-
注意
-
We suggest you do a "Find in Files" search with "Match case" and "Match whole word" enabled. That way symbols can be spotted and renamed in an efficient manner.
Data Types
Old Name
|
New Name
|
LONG
|
Int32
|
ULONG
|
UInt32
|
LLONG
|
Int64
|
LULONG
|
UInt64
|
VLONG
|
Int
|
VULONG
|
UInt
|
SWORD
|
Int16
|
UWORD
|
UInt16
|
CHAR
|
Char
|
UCHAR
|
UChar
|
SReal
|
Float32
|
LReal
|
Float64
|
Real
|
Float
|
__SINGLEPRECISION
|
__FLOAT_32_BIT
|
Set/Get Methods
Old Name
|
New Name
|
SetLLong
|
SetInt64
|
SetLong
|
SetInt32
|
SetReal
|
SetFloat
|
GetLLong
|
GetInt64
|
GetLong
|
GetInt32
|
GetReal
|
GetFloat
|
Write/Read Methods
Old Name
|
New Name
|
WriteWord
|
WriteInt16
|
WriteUWord
|
WriteUInt16
|
WriteLong
|
WriteInt32
|
WriteULong
|
WriteUInt32
|
WriteLLong
|
WriteInt64
|
WriteLULong
|
WriteUInt64
|
WriteSReal
|
WriteFloat32
|
WriteLReal
|
WriteFloat64
|
WriteReal
|
WriteFloat
|
ReadWord
|
ReadInt16
|
ReadUWord
|
ReadUInt16
|
ReadLong
|
ReadInt32
|
ReadULong
|
ReadUInt32
|
ReadLLong
|
ReadInt64
|
ReadLULong
|
ReadUInt64
|
ReadSReal
|
ReadFloat32
|
ReadLReal
|
ReadFloat64
|
ReadReal
|
ReadFloat
|
Data Types Minimum/Maximum Value
Old Name
|
New Name
|
MINLONGl
|
LIMIT<Int32>::MIN
|
MAXLONGl
|
LIMIT<Int32>::MAX
|
MINLONGf
|
MINVALUE_INT32_FLOAT32
|
MAXLONGf
|
MAXVALUE_INT32_FLOAT32
|
MINREALs
|
MINVALUE_FLOAT32
|
MAXREALs
|
MAXVALUE_FLOAT32
|
MINREALl
|
MINVALUE_FLOAT64
|
MAXREALl
|
MAXVALUE_FLOAT64
|
MINREALr
|
MINVALUE_FLOAT
|
MAXREALr
|
MAXVALUE_FLOAT
|
MINLONGd
|
Float64(LIMIT<Int32>::MAX)
|
MAXLONGd
|
Float64(LIMIT<Int32>::MIN)
|
MAXULONG
|
LIMIT<UInt32>::MAX
|
MAXSWORD
|
LIMIT<Int16>::MAX
|
MAXUWORD
|
LIMIT<UInt16>::MAX
|
向量
Old Name
|
New Name
|
SVector
|
Vector32
|
LVector
|
Vector64
|
SVector4
|
Vector4d32
|
LVector4
|
Vector4d64
|
Vector4
|
Vector4d
|
ReadSVector
|
ReadVector32
|
WriteSVector
|
WriteVector32
|
ReadLVector
|
ReadVector64
|
WriteLVector
|
WriteVector64
|
Vector Math
Old Name
|
New Name
|
Remarks
|
a % b
|
Cross(a, b)
|
a * b
|
Dot(a, b)
|
a ^ b
|
a * b
|
Note that * has a different precedence than ^.
|
a.Dot(b)
|
Dot(a, b)
|
a.Cross(b)
|
Cross(a, b)
|
a.ToLV()
|
(Vector64)a
|
a.ToSV()
|
(Vector32)a
|
a.ToRV()
|
(Vector)a
|
Vector a = 0.0;
|
Vector a = Vector(0.0);
|
Vector constructors are explicits now.
|
a.GetLengthSquared()
|
a.GetSquaredLength()
|
VectorEqual(a,b)
|
a.IsEqual(b)
|
CutColor(a)
|
a.Clamp01()
|
VectorSum(a)
|
a.GetSum()
|
VectorGray(a)
|
a.GetAverage()
|
VectorAngle(a,b)
|
GetAngle(a,b)
|
VectorMin(a)
|
a.GetMin
|
VectorMax(a)
|
a.GetMax
|
矩阵
Old Name
|
New Name
|
SMatrix
|
Matrix32
|
LMatrix
|
Matrix64
|
SMatrix4
|
Matrix4d32
|
LMatrix4
|
Matrix4d64
|
Matrix4
|
Matrix4d
|
ReadSMatrix
|
ReadMatrix32
|
WriteSMatrix
|
WriteMatrix32
|
ReadLMatrix
|
ReadMatrix64
|
WriteLMatrix
|
WriteMatrix64
|
HPBToLMatrix
|
HPBToMatrix64
|
LMatrixMove
|
Matrix64Move
|
LMatrixToHPB
|
Matrix64ToHPB
|
Matrix Math
Old Name
|
New Name
|
Remarks
|
vector * matrix
|
matrix * vector
|
Vector can only be multiplied from the right.
|
vector *= matrix
|
vector = matrix * vector
|
Vector can only be multiplied from the right.
|
matrix.Mul(vector)
|
matrix * vector
|
matrix.MulV(vector)
|
matrix.TransformVector(vector)
|
matrix ^ vector
|
matrix.TransformVector(vector)
|
vector ^ matrix
|
matrix.TransformVector(vector)
|
vector ^= matrix
|
vector = matrix.TransformVector(vector)
|
!matrix
|
~matrix
|
Attention: operator ! means normalized components of the matrix.
|
m.ToLM()
|
(Matrix64)a
|
m.ToSM()
|
(Matrix32)a
|
m.ToRM()
|
(Matrix)a
|
General Math
Old Name
|
New Name
|
Remarks
|
Mix
|
Blend
|
Step
|
|
Function removed.
|
Clamp(min, max, a)
|
ClampValue(a, min, max)
|
Attention: parameter order switched.
|
FCut
|
Clamp
|
Ln10
|
Log10
|
Ld
|
Log2
|
FCut01
|
Clamp0
|
函数
Old Name
|
New Name
|
GeBoom
|
CriticalStop
|
GeAssert
|
DebugAssert
|
GeBreak
|
CriticalStop
|
Type Casts
Old Name
|
New Name
|
SCO
|
(Float32)
|
RCO
|
(Float)
|
LCO
|
(Float64)
|
常量
Old Name
|
New Name
|
pi
|
PI
|
piinv
|
PI_INV
|
pi2
|
PI2
|
pi2inv
|
PI2_INV
|
pi05
|
PI05
|
TRUE
|
true
|
FALSE
|
false
|
NULL
|
nullptr
|
More
Old Name
|
New Name
|
FtoL
|
Int32
|
SAFELONG
|
SAFEINT32
|
LFloor
|
(Int32)Floor
|
LCeil
|
(Int32)Ceil
|
Memory Allocation/Deallocation and Management Functions
Old Name
|
New Name
|
Remarks
|
gNew(MyClass)
|
NewObjClear(MyClass)
|
If the constructor is clean use the faster NewObj(MyClass).
|
gNew MyClass
|
NewObjClear(MyClass)
|
If the constructor is clean use the faster NewObj(MyClass).
|
gNew MyClass(a,b)
|
NewObjClear(MyClass, a, b)
|
If the constructor is clean use the faster NewObj(MyClass, a, b).
|
gDelete
|
DeleteObj
|
bNew
|
bNewDeprecatedUseArraysInstead
|
It is recomended to change your code to use maxon::BaseArray.
|
MemoryPool
|
DeprecatedMemoryPool
|
GeAlloc(x)
|
NewMemClear(UChar, x)
|
GeAllocNC(x)
|
NewMem(UChar, x)
|
GeReallocNC(p,s)
|
ReallocMem((UChar*)p, s)
|
GeAllocType(t,x)
|
NewMemClear(t, x)
|
GeAllocTypeNC(t,x)
|
NewMem(t, x)
|
GeReallocTypeNC(t,p,s)
|
ReallocMem((t*)p, s)
|
Normally p is already of type t*, so the cast is not needed.
|
GeFree(p)
|
DeleteMem(p)
|
String Conversion
More Constants/IDs
Old Name
|
New Name
|
FORMAT_LONG
|
FORMAT_INT
|
FORMAT_REAL
|
FORMAT_FLOAT
|
HYPERFILEVALUE_WORD
|
HYPERFILEVALUE_INT16
|
HYPERFILEVALUE_UWORD
|
HYPERFILEVALUE_UINT16
|
HYPERFILEVALUE_LONG
|
HYPERFILEVALUE_INT32
|
HYPERFILEVALUE_ULONG
|
HYPERFILEVALUE_UINT32
|
HYPERFILEVALUE_LLONG
|
HYPERFILEVALUE_INT64
|
HYPERFILEVALUE_LULONG
|
HYPERFILEVALUE_UINT64
|
HYPERFILEVALUE_REAL
|
HYPERFILEVALUE_FLOAT
|
HYPERFILEVALUE_LREAL
|
HYPERFILEVALUE_FLOAT64
|
HYPERFILEVALUE_LVECTOR
|
HYPERFILEVALUE_VECTOR64
|
HYPERFILEVALUE_LMATRIX
|
HYPERFILEVALUE_MATRIX64
|
HYPERFILEVALUE_SVECTOR
|
HYPERFILEVALUE_VECTOR32
|
HYPERFILEVALUE_SMATRIX
|
HYPERFILEVALUE_MATRIX32
|
HYPERFILEVALUE_SREAL
|
HYPERFILEVALUE_FLOAT32
|
LV_RES_LONG
|
LV_RES_INT
|
DESC_UNIT_LONG
|
DESC_UNIT_INT
|
DESC_UNIT_REAL
|
DESC_UNIT_FLOAT
|