AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 所有成员列表
AnyCAD::API::Texture类 参考

The texture. 更多...

#include <APITexture.h>

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

Public 成员函数

void SetFilePath (const Path &strFile)
 
Path GetFilePath () const
 
bool SetFileBuffer (const Path &id, const CharBuffer &buffer)
 
bool SetFileBits (const Path &id, const CharBuffer &buffer, int width, int height, int stride)
 
void SetScale (const Vector2 &scale)
 
Vector2 GetScale () const
 
void SetTranslation (const Vector2 &trans)
 
Vector2 GetTranslation () const
 
void SetRotation (Real angle)
 
Real GetRoation () const
 
void UpdateTransform ()
 
Matrix4 GetTransform () const
 
void RequestUpdate ()
 
- Public 成员函数 继承自 AnyCAD::API::RenderResource
void SetName (const String &strName)
 
String GetName () const
 
- Public 成员函数 继承自 AnyCAD::API::Object
String GetObjectClassId () const
 
StringList ListParentClassIds () const
 

详细描述

The texture.

TODO:

成员函数说明

Path AnyCAD::API::Texture::GetFilePath ( ) const

Get image file name.

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

Get rotation factor.

返回
the rotation factor.
Vector2 AnyCAD::API::Texture::GetScale ( ) const

Get scale.

返回
the scale factor.
Matrix4 AnyCAD::API::Texture::GetTransform ( ) const

Get transform matrix.

返回
the transform matrix.
Vector2 AnyCAD::API::Texture::GetTranslation ( ) const

Get translation.

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

Request to update the texture after the image is changed.

bool AnyCAD::API::Texture::SetFileBits ( const Path id,
const 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::API::Texture::SetFileBuffer ( const Path id,
const CharBuffer buffer 
)

load texture image from buffer.

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

Set image file name.

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

Rotation.

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

Set scale.

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

Move.

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

Update the transform after change the transform factors..


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