Public Member Functions | Private Attributes | List of all members
Size Class Reference

Class representing a two or three dimension size. More...

#include <Size.h>

Collaboration diagram for Size:
Collaboration graph
[legend]

Public Member Functions

double getDepth () const
 The following function returns the depth.
double getHeight () const
 The following function returns the height.
double getWidth () const
 The following function returns the width.
void setDepth (double)
 Sets the depth dimenision of the size.
void setSize (double width, double height)
void setSize (double width, double height, double depth)
 Size ()
 Size (double width, double height)
 Size (double width, double height, double depth)

Private Attributes

double m_depth
double m_height
double m_width

Detailed Description

Class representing a two or three dimension size.

Attention
the inline functions were measured to have high profile when plotting large image.

Definition at line 22 of file Size.h.

Constructor & Destructor Documentation

Size ( )

Definition at line 16 of file Size.cxx.

Size ( double  width,
double  height 
)

Definition at line 22 of file Size.cxx.

Size ( double  width,
double  height,
double  depth 
)

Definition at line 27 of file Size.cxx.

Member Function Documentation

double getDepth ( ) const
inline

The following function returns the depth.

Definition at line 72 of file Size.h.

References Size::m_depth.

Referenced by Rect::getDepth(), Rect::isInDepth(), and Rect::makeInBounds().

double getHeight ( ) const
inline

The following function returns the height.

Definition at line 64 of file Size.h.

References Size::m_height.

Referenced by Rect::getHeight(), and Rect::makeInBounds().

double getWidth ( ) const
inline

The following function returns the width.

Definition at line 56 of file Size.h.

References Size::m_width.

Referenced by Rect::getWidth(), and Rect::makeInBounds().

void setDepth ( double  d)

Sets the depth dimenision of the size.

Definition at line 45 of file Size.cxx.

References Size::m_depth.

Referenced by Rect::setDepth().

void setSize ( double  width,
double  height 
)

Definition at line 32 of file Size.cxx.

References Size::m_height, and Size::m_width.

Referenced by Rect::setRect().

void setSize ( double  width,
double  height,
double  depth 
)

Definition at line 38 of file Size.cxx.

References Size::m_depth, Size::m_height, and Size::m_width.

Member Data Documentation

double m_depth
private

Definition at line 27 of file Size.h.

Referenced by Size::getDepth(), Size::setDepth(), and Size::setSize().

double m_height
private

Definition at line 26 of file Size.h.

Referenced by Size::getHeight(), and Size::setSize().

double m_width
private

Definition at line 25 of file Size.h.

Referenced by Size::getWidth(), and Size::setSize().


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

Generated for HippoDraw Class Library by doxygen