1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
/*=========================================================================
Program: Image Guided Surgery Software Toolkit
Module: $RCSfile: igstkToolProjectionSpatialObject.cxx,v $
Language: C++
Date: $Date: 2009-06-15 21:02:14 $
Version: $Revision: 1.2 $
Copyright (c) ISC Insight Software Consortium. All rights reserved.
See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include "igstkToolProjectionSpatialObject.h"
namespace igstk
{
/** Constructor */
ToolProjectionSpatialObject::ToolProjectionSpatialObject():m_StateMachine(this)
{
m_ToolProjectionSpatialObject = ToolProjectionSpatialObjectType::New();
this->RequestSetInternalSpatialObject( m_ToolProjectionSpatialObject );
m_Size = 100;
}
/** Destructor */
ToolProjectionSpatialObject::~ToolProjectionSpatialObject()
{
}
/** Set the size of each axis */
void ToolProjectionSpatialObject::SetSize(double size)
{
m_Size = size;
}
/** Get size of the tool */
double ToolProjectionSpatialObject::GetSize() const
{
return m_Size;
}
/** Print object information */
void ToolProjectionSpatialObject::PrintSelf(
std::ostream& os, itk::Indent indent ) const
{
Superclass::PrintSelf(os, indent);
os << "Size = " << m_Size << std::endl;
}
} // end namespace igstk
|