3DCoat  3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cuGizmoControl Struct Reference

this structure is passed to CurvePrimitive::GetControl to render and handle controls More...

#include <CurvesPrimitives.h>

Public Member Functions

void SetInWorldSpace (Vector3D pt, CurvePrimitive *parent, float angle)
 fills pos, X,Y, size, axis directed along local space of primitive More...
 
void SetInScreenSpace (Vector3D pt, CurvePrimitive *parent, float angle)
 fills pos, X,Y, size, axis directed along screen X, Y More...
 

Public Attributes

bool Visible
 true by default, set false to hide control More...
 
cVec2 pos
 screen position of the control More...
 
cVec2 X
 x-direction to draw picture (2D) More...
 
cVec2 Y
 y-direction to draw picture (2D) More...
 
float size
 2D size of the picture to draw, has correct default value, don't change if no need More...
 
int PictureID
 picture used for the control - texture index if positive, predefined picture if negative More...
 
DWORD Color
 color of the control More...
 
float ActivityRadius
 control becomes visible if mouse is nearby the control, this is the radius of visibility. More...
 

Detailed Description

this structure is passed to CurvePrimitive::GetControl to render and handle controls

Member Function Documentation

void cuGizmoControl::SetInScreenSpace ( Vector3D  pt,
CurvePrimitive parent,
float  angle 
)

fills pos, X,Y, size, axis directed along screen X, Y

References pos, X, and Y.

void cuGizmoControl::SetInWorldSpace ( Vector3D  pt,
CurvePrimitive parent,
float  angle 
)

fills pos, X,Y, size, axis directed along local space of primitive

References pos, X, and Y.

Member Data Documentation

float cuGizmoControl::ActivityRadius

control becomes visible if mouse is nearby the control, this is the radius of visibility.

Referenced by CurvePrimitive::OnClick(), and CurvePrimitive::RenderControls().

DWORD cuGizmoControl::Color

color of the control

Referenced by CurvePrimitive::RenderControls().

int cuGizmoControl::PictureID

picture used for the control - texture index if positive, predefined picture if negative

Referenced by CurvePrimitive::RenderControls().

cVec2 cuGizmoControl::pos
float cuGizmoControl::size

2D size of the picture to draw, has correct default value, don't change if no need

Referenced by CurvePrimitive::OnClick(), and CurvePrimitive::RenderControls().

bool cuGizmoControl::Visible

true by default, set false to hide control

cVec2 cuGizmoControl::X

x-direction to draw picture (2D)

Referenced by CurvePrimitive::RenderControls(), SetInScreenSpace(), and SetInWorldSpace().

cVec2 cuGizmoControl::Y

y-direction to draw picture (2D)

Referenced by CurvePrimitive::RenderControls(), SetInScreenSpace(), and SetInWorldSpace().


The documentation for this struct was generated from the following files: