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

Size.cxx

Go to the documentation of this file.
00001 /*
00002  * HippoPlot Size  class implementation
00003  *
00004  * Copyright (C) 2000, 2001, 2003   The Board of Trustees of The Leland
00005  * Stanford Junior University.  All Rights Reserved.
00006  *
00007  * $Id: Size.cxx,v 1.8 2004/05/02 17:18:35 pfkeb Exp $
00008  */
00009 
00010 #include "Size.h"
00011 
00012 Size::Size()
00013   : m_width( 0.0 ), m_height( 0.0 ), m_depth( 0.0 )
00014 {
00015 }
00016 
00017 Size::Size( double x, double y )
00018   : m_width( x ), m_height( y )
00019 {
00020 }
00021 
00022 Size::Size( double x, double y, double z )
00023   : m_width( x ), m_height( y ), m_depth( z )
00024 {
00025 }
00026 
00027 void Size::setSize( double width, double height )
00028 {
00029   m_width = width;
00030   m_height = height;
00031 }
00032 
00033 void Size::setSize( double width, double height, double depth )
00034 {
00035   m_width = width;
00036   m_height = height;
00037   m_depth = depth;
00038 }
00039 
00040 void Size::setDepth ( double d )
00041 {
00042   m_depth = d;
00043 }

Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3