vcg::Add_Ons Class Reference

#include <addons.h>

List of all members.

Public Types

enum  DrawMode { DMUser, DMWire, DMSolid }

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 

Definition at line 47 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 241 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 91 of file addons.h.

static void vcg::Add_Ons::Diamond ( float  radius,
bool  useDisplList 
) [inline, static]

Definition at line 180 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 326 of file addons.h.

template<DrawMode dm>
static void vcg::Add_Ons::glCone ( Point3f  tail,
Point3f  head,
float  width,
int  slice = 10,
bool  useDisplList = true 
) [inline, static]

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 357 of file addons.h.

template<DrawMode dm>
static void vcg::Add_Ons::glCylinder ( Point3f  tail,
Point3f  head,
float  width,
int  slice = 10,
bool  useDisplList = true 
) [inline, static]

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 380 of file addons.h.

template<DrawMode dm>
static void vcg::Add_Ons::glDiamond ( Point3f  Center,
float  size,
bool  useDisplList = true 
) [inline, static]

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 426 of file addons.h.

template<DrawMode dm>
static void vcg::Add_Ons::glPoint ( vcg::Point3f  Center,
float  size,
int  slices = 16,
int  stacks = 16 
) [inline, static]

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 405 of file addons.h.

static void vcg::Add_Ons::SetGLParameters ( DrawMode  DM  )  [inline, static, private]

Definition at line 69 of file addons.h.

static void vcg::Add_Ons::XAxis ( vcg::Point3f  zero,
vcg::Point3f  uno,
Matrix44f tr 
) [inline, static, private]

used to find right transformation in case of rotation

Definition at line 51 of file addons.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:22:57 2013