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

Size Class Reference

#include <Size.h>

Collaboration diagram for Size:

Collaboration graph
[legend]
List of all members.

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 20 of file Size.h.

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, double depth)
void setSize (double width, double height)
 Size (double width, double height, double depth)
 Size (double width, double height)
 Size ()

Private Attributes

double m_depth
double m_height
double m_width


Constructor & Destructor Documentation

Size::Size  ) 
 

Definition at line 12 of file Size.cxx.

Size::Size double  width,
double  height
 

Definition at line 17 of file Size.cxx.

Size::Size double  width,
double  height,
double  depth
 

Definition at line 22 of file Size.cxx.


Member Function Documentation

double Size::getDepth  )  const [inline]
 

The following function returns the depth.

Definition at line 68 of file Size.h.

References m_depth.

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

double Size::getHeight  )  const [inline]
 

The following function returns the height.

Definition at line 60 of file Size.h.

References m_height.

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

double Size::getWidth  )  const [inline]
 

The following function returns the width.

Definition at line 52 of file Size.h.

References m_width.

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

void Size::setDepth double   ) 
 

Sets the depth dimenision of the size.

Definition at line 40 of file Size.cxx.

References m_depth.

Referenced by HippoRectangle::setDepth().

void Size::setSize double  width,
double  height,
double  depth
 

Definition at line 33 of file Size.cxx.

References m_depth, m_height, and m_width.

void Size::setSize double  width,
double  height
 

Definition at line 27 of file Size.cxx.

References m_height, and m_width.

Referenced by HippoRectangle::setRect().


Member Data Documentation

double Size::m_depth [private]
 

Definition at line 25 of file Size.h.

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

double Size::m_height [private]
 

Definition at line 24 of file Size.h.

Referenced by getHeight(), and setSize().

double Size::m_width [private]
 

Definition at line 23 of file Size.h.

Referenced by getWidth(), and setSize().


The documentation for this class was generated from the following files:
Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3