PointRepBase.cxx
Go to the documentation of this file.
1 
11 #ifdef _MSC_VER
12 #include "msdevstudio/MSconfig.h"
13 #endif
14 
15 #include "PointRepBase.h"
16 
17 #include "ErrorBarRep.h"
18 
19 #include "graphics/ViewBase.h"
20 
21 using std::string;
22 
23 namespace hippodraw {
24 
25 PointRepBase::PointRepBase ( const char * name, float size )
26  : RepBase ( name, size ),
27  m_error_rep ( 0 )
28 {
29 }
30 
32  : RepBase ( point_rep ),
33  m_error_rep ( 0 ) // derived class can reset it.
34 {
35 }
36 
37 /* virtual */
39 {
40  RepBase::setSelected ( yes );
41 
42  if ( m_error_rep ) {
43  m_error_rep->setSelected ( yes );
44  }
45 }
46 
47 } // namespace hippodraw
hippodraw::ErrorBarRep class interface
virtual void setSelected(bool yes=true)
Sets the representation to be selected if yes is true, otherwise set it to be deselected.
Definition: RepBase.cxx:72
PointRepBase(const char *name, float size)
A constructor with the name of the representation and its size.
return yes
Definition: CanvasView.cxx:883
virtual void setSelected(bool yes)
Sets the selection state of the representation.
ErrorBarRep * m_error_rep
The error bar representation.
Definition: PointRepBase.h:44
intp size(numeric::array arr)
Definition: num_util.cpp:296
hippodraw::PointRepBase class interface
hippodraw::ViewBase class interface
The base class for the point representation hierarchy.
Definition: RepBase.h:45
The base class for the point representation hierarchy.
Definition: PointRepBase.h:37

Generated for HippoDraw Class Library by doxygen