cmlabs::Size Class Reference

#include <MathClasses.h>

Inheritance diagram for cmlabs::Size:

Inheritance graph
Collaboration diagram for cmlabs::Size:

Collaboration graph

List of all members.

Public Member Functions

 Size ()
 Size (JString xml)
 Size (XMLNode *node)
 Size (double width, double height, double depth=0)
virtual ~Size ()
Objectclone () const
bool equals (const Size &size) const
bool operator== (const Size &p) const
double getHeight () const
double getWidth () const
double getDepth () const
bool setHeight (double height)
bool setWidth (double width)
bool setDepth (double depth)
bool isNonZero () const
double getArea () const
double getDiagonalLenth () const
JString print ()
JString toXML ()
bool fromXML (XMLNode *node)

Public Attributes

double w
double h
double d

Detailed Description

Definition at line 45 of file MathClasses.h.

Constructor & Destructor Documentation

cmlabs::Size::Size (  ) 

Definition at line 34 of file MathClasses.cpp.

cmlabs::Size::Size ( JString  xml  ) 

Definition at line 35 of file MathClasses.cpp.

cmlabs::Size::Size ( XMLNode node  ) 

Definition at line 40 of file MathClasses.cpp.

cmlabs::Size::Size ( double  width,
double  height,
double  depth = 0 

Definition at line 45 of file MathClasses.cpp.

cmlabs::Size::~Size (  )  [virtual]

Definition at line 46 of file MathClasses.cpp.

Member Function Documentation

Object * cmlabs::Size::clone (  )  const [virtual]

Implements cmlabs::Object.

Definition at line 48 of file MathClasses.cpp.

bool cmlabs::Size::equals ( const Size size  )  const

Definition at line 54 of file MathClasses.cpp.

bool cmlabs::Size::operator== ( const Size p  )  const

Definition at line 61 of file MathClasses.cpp.

double cmlabs::Size::getHeight (  )  const

Definition at line 66 of file MathClasses.cpp.

double cmlabs::Size::getWidth (  )  const

Definition at line 67 of file MathClasses.cpp.

double cmlabs::Size::getDepth (  )  const

Definition at line 68 of file MathClasses.cpp.

bool cmlabs::Size::setHeight ( double  height  ) 

Definition at line 70 of file MathClasses.cpp.

bool cmlabs::Size::setWidth ( double  width  ) 

Definition at line 71 of file MathClasses.cpp.

bool cmlabs::Size::setDepth ( double  depth  ) 

Definition at line 72 of file MathClasses.cpp.

bool cmlabs::Size::isNonZero (  )  const

Definition at line 74 of file MathClasses.cpp.

double cmlabs::Size::getArea (  )  const

Definition at line 78 of file MathClasses.cpp.

double cmlabs::Size::getDiagonalLenth (  )  const

Definition at line 82 of file MathClasses.cpp.

JString cmlabs::Size::print (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 86 of file MathClasses.cpp.

JString cmlabs::Size::toXML (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 90 of file MathClasses.cpp.

bool cmlabs::Size::fromXML ( XMLNode node  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 93 of file MathClasses.cpp.

Member Data Documentation

Definition at line 56 of file MathClasses.h.

Definition at line 57 of file MathClasses.h.

Definition at line 58 of file MathClasses.h.

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

Generated on Tue Jul 7 16:22:59 2009 for CoreLibrary by  doxygen 1.5.6