The screen coordinate widget. 更多...
#include <APIScreenWidget.h>
Public 成员函数 | |
void | SetNode (const SceneNode &node) |
Vector2 | GetWidgetSize () const |
void | SetWidgetSize (const Vector2 &sz) |
void | SetWidgetPosition (int sceeenPos) |
int | GetWidgetPosition () const |
Public 成员函数 继承自 AnyCAD::API::SceneNode | |
ElementId | GetId () const |
void | SetId (const ElementId &nId) |
String | GetName () const |
void | SetName (const String &name) |
void | SetVisible (bool bVisible) |
bool | IsVisible () const |
bool | IsPickable () const |
void | SetPickable (bool enabled) |
bool | IsFilterable () const |
void | SetFilterable (bool enabled) |
bool | IsFixedSize () const |
void | SetFixedSize (bool enabled) |
void | SetBBox (const AABox &bbox) |
AABox | GetBBox () const |
void | SetTransform (const Matrix4 &trf) |
Matrix4 | GetTransform () const |
void | SetPointStyle (const PointStyle &pointStyle) |
PointStyle | GetPointStyle () const |
void | SetLineStyle (const LineStyle &lineStyle) |
LineStyle | GetLineStyle () const |
void | SetFaceStyle (const FaceStyle &faceStyle) |
FaceStyle | GetFaceStyle () const |
void | SetRenderOrder (int order) |
int | GetRenderOrder () const |
virtual void | ResetShapeFilter (int nFilter) |
Public 成员函数 继承自 AnyCAD::API::Object | |
String | GetObjectClassId () const |
StringList | ListParentClassIds () const |
The screen coordinate widget.
TODO:
int AnyCAD::API::ScreenWidget::GetWidgetPosition | ( | ) | const |
Get the position on screen.
Vector2 AnyCAD::API::ScreenWidget::GetWidgetSize | ( | ) | const |
Get the size
void AnyCAD::API::ScreenWidget::SetNode | ( | const SceneNode & | node | ) |
Set the node
node | the node. |
void AnyCAD::API::ScreenWidget::SetWidgetPosition | ( | int | sceeenPos | ) |
Set the position on screen by EnumWidgetPosition
sceeenPos | the position. |
void AnyCAD::API::ScreenWidget::SetWidgetSize | ( | const Vector2 & | sz | ) |
Set the size
sz | the size |