CIvfBrick Class Reference

#include <ivf/IvfBrick.h>

Inheritance diagram for CIvfBrick:

CIvfQuadSet CIvfGLPrimitive CIvfShape CIvfObject CIvfBase CIvfRefCountBase CIvfRTTIBase CIvfCube CIvfWireBrick CIvfSelectionBox List of all members.

Public Member Functions

 CIvfBrick ()
virtual ~CIvfBrick ()
 IvfClassInfo ("CIvfBrick", CIvfQuadSet)
void setSize (CIvfPoint3d *p1, CIvfPoint3d *p2)
void setSize (const double width, const double height, const double depth)
void getSize (double &width, double &height, double &depth)

Protected Member Functions

virtual void createSelect ()
virtual void initBrick ()

Protected Attributes

double m_size [3]

Detailed Description

Brick shape class

CIvfBrick implements a shape consisting of 6 sides forming a brick.

Author:
Jonas Lindemann
Examples:

manip.cpp.

Definition at line 40 of file IvfBrick.h.


Constructor & Destructor Documentation

CIvfBrick::CIvfBrick (   ) 
 

CIvfBrick constructor

virtual CIvfBrick::~CIvfBrick (   )  [virtual]
 

CIvfBrick destructor


Member Function Documentation

virtual void CIvfBrick::createSelect (   )  [protected, virtual]
 

Creates the select object.

When the object is selected. This method is called to create the object respresenting the select state.

Reimplemented from CIvfShape.

void CIvfBrick::getSize (  double &  width,
double &  height,
double &  depth
) 
 

Return brick size

void CIvfBrick::setSize (  const double  width,
const double  height,
const double  depth
) 
 

Set brick size

The brick size is specified by supplying 3 dimensions.

Parameters:
width Width of brick (X-dir)
height Height of brick (Y-dir)
depth Depth of brick (Z-dir)

void CIvfBrick::setSize (  CIvfPoint3d *  p1,
CIvfPoint3d *  p2
) 
 

Set brick size (2 points)

The brick size is specified by supplying to point references.

Parameters:
p1 CIvfPoint instance specifying the first corner of the brick.
p2 CIvfPoint instance specifying the opposite corner of the brick.


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 15:36:48 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO