AnyCAD SDK PRO  2020
The Professional Graphics SDK for .Net and C++ Developers
Public 成员函数 | 所有成员列表
AnyCAD::Platform::Texture类 参考

The texture. 更多...

类 AnyCAD::Platform::Texture 继承关系图:
AnyCAD::Platform::RenderResource AnyCAD::Platform::Object

Public 成员函数

void SetFilePath (Path^ strFile)
 
PathGetFilePath ()
 
bool SetFileBuffer (Path^ id, CharBuffer^ buffer)
 
bool SetFileBits (Path^ id, CharBuffer^ buffer, int width, int height, int stride)
 
void SetScale (Vector2^ scale)
 
Vector2GetScale ()
 
void SetTranslation (Vector2^ trans)
 
Vector2GetTranslation ()
 
void SetRotation (Real angle)
 
Real GetRoation ()
 
void UpdateTransform ()
 
Matrix4GetTransform ()
 
void RequestUpdate ()
 
- Public 成员函数 继承自 AnyCAD::Platform::RenderResource
void SetName (String^ strName)
 
String^ GetName ()
 
- Public 成员函数 继承自 AnyCAD::Platform::Object
String^ GetObjectClassId ()
 
StringList^ ListParentClassIds ()
 

详细描述

The texture.

TODO:

成员函数说明

Path ^ AnyCAD::Platform::Texture::GetFilePath ( )

Get image file name.

返回
the file name.
Real AnyCAD::Platform::Texture::GetRoation ( )

Get rotation factor.

返回
the rotation factor.
Vector2 ^ AnyCAD::Platform::Texture::GetScale ( )

Get scale.

返回
the scale factor.
Matrix4 ^ AnyCAD::Platform::Texture::GetTransform ( )

Get transform matrix.

返回
the transform matrix.
Vector2 ^ AnyCAD::Platform::Texture::GetTranslation ( )

Get translation.

返回
the translation factor.
void AnyCAD::Platform::Texture::RequestUpdate ( )

Request to update the texture after the image is changed.

bool AnyCAD::Platform::Texture::SetFileBits ( Path id,
CharBuffer^  buffer,
int  width,
int  height,
int  stride 
)

load texture image from buffer.

参数
idthe uniqu ID
bufferthe image buffer data.
widththe width
heightthe height
stridethe stride
返回
true if valid.
bool AnyCAD::Platform::Texture::SetFileBuffer ( Path id,
CharBuffer^  buffer 
)

load texture image from buffer.

参数
idthe uniqu ID
bufferthe image buffer data.
返回
true if valid.
void AnyCAD::Platform::Texture::SetFilePath ( Path strFile)

Set image file name.

参数
strFilethe file name.
void AnyCAD::Platform::Texture::SetRotation ( Real  angle)

Rotation.

参数
anglethe rotation factor.
void AnyCAD::Platform::Texture::SetScale ( Vector2 scale)

Set scale.

参数
scalethe scale factor.
void AnyCAD::Platform::Texture::SetTranslation ( Vector2 trans)

Move.

参数
transthe offset factor.
void AnyCAD::Platform::Texture::UpdateTransform ( )

Update the transform after change the transform factors..


该类的文档由以下文件生成: