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