Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

VPCylinder Class Reference

Cylinders are created along the z axis, with bottom at zero and top at height. More...

#include <vpcylinder.h>

Inheritance diagram for VPCylinder:

VPGraphicObj VPSceneNode VPMemoryObj List of all members.

Public Member Functions

 VPCylinder ()
 The default cylinder has height and radius = 1. All parts are visible.
 VPCylinder (float fHi, float fRad)
 VPCylinder (float fHi, float fRad, bool bS, bool bT, bool bB)
virtual void ComputeBoundingBox ()
 Computes the bounding box.
void SetHeight (float h)
void SetRadius (float r)
void SetMaterial (const VPMaterial &mat)
 Material assignment.
void ShowSide (bool yesno)
void ShowTop (bool yesno)
void ShowBottom (bool yesno)
float GetHeight ()
float GetRadius ()
VPMaterial GetMaterial () const
 Returns of copy of the cylinder's material.
bool ShowSide ()
bool ShowTop ()
bool ShowBottom ()

Detailed Description

Cylinders are created along the z axis, with bottom at zero and top at height.

Definition at line 18 of file vpcylinder.h.


Constructor & Destructor Documentation

VPCylinder::VPCylinder  ) 
 

The default cylinder has height and radius = 1. All parts are visible.

Definition at line 32 of file vpcylinder.cpp.

VPCylinder::VPCylinder float  fHi,
float  fRad
 

Definition at line 37 of file vpcylinder.cpp.

VPCylinder::VPCylinder float  fHi,
float  fRad,
bool  bS,
bool  bT,
bool  bB
 

Definition at line 42 of file vpcylinder.cpp.


Member Function Documentation

void VPCylinder::ComputeBoundingBox  )  [virtual]
 

Computes the bounding box.

Implements VPGraphicObj.

Definition at line 51 of file vpcylinder.cpp.

References VPGraphicObj::bBox, and VPBoundingBox::SetBoundingBox().

float VPCylinder::GetHeight  ) 
 

Definition at line 75 of file vpcylinder.cpp.

VPMaterial VPCylinder::GetMaterial  )  const [inline]
 

Returns of copy of the cylinder's material.

Definition at line 40 of file vpcylinder.h.

float VPCylinder::GetRadius  ) 
 

Definition at line 79 of file vpcylinder.cpp.

void VPCylinder::SetHeight float  h  ) 
 

Definition at line 55 of file vpcylinder.cpp.

void VPCylinder::SetMaterial const VPMaterial mat  )  [inline]
 

Material assignment.

Definition at line 33 of file vpcylinder.h.

void VPCylinder::SetRadius float  r  ) 
 

Definition at line 59 of file vpcylinder.cpp.

bool VPCylinder::ShowBottom  ) 
 

Definition at line 91 of file vpcylinder.cpp.

void VPCylinder::ShowBottom bool  yesno  ) 
 

Definition at line 71 of file vpcylinder.cpp.

bool VPCylinder::ShowSide  ) 
 

Definition at line 83 of file vpcylinder.cpp.

void VPCylinder::ShowSide bool  yesno  ) 
 

Definition at line 63 of file vpcylinder.cpp.

bool VPCylinder::ShowTop  ) 
 

Definition at line 87 of file vpcylinder.cpp.

void VPCylinder::ShowTop bool  yesno  ) 
 

Definition at line 67 of file vpcylinder.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Sep 6 10:00:13 2005 for VPAT by  doxygen 1.4.4