00001 00012 // for truncation warning in debug mode 00013 #ifdef _MSC_VER 00014 #include "msdevstudio/MSconfig.h" 00015 #endif 00016 00017 #include "Profile2D.h" 00018 00019 #include "projectors/Profile2DProjector.h" 00020 #include "reps/ColorBoxPointRep.h" 00021 00022 Profile2D::Profile2D ( ) 00023 : DataRep () 00024 { 00025 m_name = "Profile 2D"; 00026 00027 m_projector = new Profile2DProjector(); 00028 m_rep = new ColorBoxPointRep(); 00029 } 00030 00031 DataRep * Profile2D::clone () 00032 { 00033 return new Profile2D ( *this ); 00034 } 00035 00036 using namespace hippodraw; 00037 00038 bool 00039 Profile2D:: 00040 hasAxis ( hippodraw::Axes::Type axis ) const 00041 { 00042 return axis == Axes::X || axis == Axes::Y || axis ==Axes::Z; 00043 } 00044