#include <addons.h>
List of all members.
Public Types |
enum | DrawMode { DMUser,
DMWire,
DMSolid,
DMFlat
} |
Static Public Member Functions |
static void | Cone (int slices, float lenght, float width, bool useDisplList) |
| draw a cone
|
static void | Diamond (float radius, bool useDisplList) |
template<DrawMode dm> |
static void | glArrow (Point3f tail, Point3f head, float body_width, float head_lenght, float head_width, int body_slice=10, int head_slice=10, bool useDisplList=true) |
template<DrawMode dm> |
static void | glCone (Point3f tail, Point3f head, float width, int slice=10, bool useDisplList=true) |
template<DrawMode dm> |
static void | glCylinder (Point3f tail, Point3f head, float width, int slice=10, bool useDisplList=true) |
template<DrawMode dm> |
static void | glDiamond (Point3f Center, float size, bool useDisplList=true) |
template<DrawMode dm> |
static void | glPoint (vcg::Point3f Center, float size, int slices=16, int stacks=16) |
Static Private Member Functions |
static void | Cylinder (int slices, float lenght, float width, bool useDisplList) |
| draw a cylinder
|
static void | SetGLParameters (DrawMode DM) |
static void | XAxis (vcg::Point3f zero, vcg::Point3f uno, Matrix44f &tr) |
| used to find right transformation in case of rotation
|
Detailed Description
Class Add_Ons. This is class draw 3d icons on the screen
Definition at line 48 of file addons.h.
Member Enumeration Documentation
- Enumerator:
DMUser |
|
DMWire |
|
DMSolid |
|
DMFlat |
|
Definition at line 51 of file addons.h.
Member Function Documentation
static void vcg::Add_Ons::Cone |
( |
int |
slices, |
|
|
float |
lenght, |
|
|
float |
width, |
|
|
bool |
useDisplList |
|
) |
| [inline, static] |
draw a cone
if the diplay list is createdtake the Glint that identify it
the list exist
I insert key and value in the map if I need
Definition at line 250 of file addons.h.
static void vcg::Add_Ons::Cylinder |
( |
int |
slices, |
|
|
float |
lenght, |
|
|
float |
width, |
|
|
bool |
useDisplList |
|
) |
| [inline, static, private] |
draw a cylinder
if the diplay list is createdtake the Glint that identify it
the list exist
re-conjunction with first point of cylinder
fill the cylinder down
I insert key and value in the map if I need
Definition at line 100 of file addons.h.
template<DrawMode dm>
static void vcg::Add_Ons::glArrow |
( |
Point3f |
tail, |
|
|
Point3f |
head, |
|
|
float |
body_width, |
|
|
float |
head_lenght, |
|
|
float |
head_width, |
|
|
int |
body_slice = 10 , |
|
|
int |
head_slice = 10 , |
|
|
bool |
useDisplList = true |
|
) |
| [inline, static] |
draw an arrow from tail to head body_width = width of the body of arrow head_lenght = lenght of the head of arrow head_width = width of the head of arrow body_slice = number of slices on the body head_slice = number of slices on the head
Definition at line 332 of file addons.h.
draw a cone from tail to head width = width of the base of the cone slice = number of slices on the cone
Definition at line 366 of file addons.h.
draw a cylinder from tail to head width = width of the base of the cylinder slice = number of slices on the cylinder
Definition at line 389 of file addons.h.
draw a point in Center size = Radius of the point slices = The number of subdivisions around the Z axis (similar to lines of longitude). stacks = The number of subdivisions along the Z axis (similar to lines of latitude).
Definition at line 435 of file addons.h.
draw a point in Center size = Radius of the point slices = The number of subdivisions around the Z axis (similar to lines of longitude). stacks = The number of subdivisions along the Z axis (similar to lines of latitude).
Definition at line 414 of file addons.h.
used to find right transformation in case of rotation
Definition at line 55 of file addons.h.
The documentation for this class was generated from the following file: