34 #ifndef ANATOMIST_SURFACE_SHOWNORMALS_H 
   35 #define ANATOMIST_SURFACE_SHOWNORMALS_H 
   58     float length()
 const { 
return _length; }
 
   68     std::vector<ASurface<3> *> _ameshes;
 
   71     static float _default_length;
 
   81     virtual std::string 
ID()
 const { 
return "NormalsFusionMethod"; }
 
   82     virtual int canFusion( 
const std::set<AObject *> & objects );
 
A mesh displaying normals for other meshes.
virtual bool render(PrimList &plist, const ViewState &vs)
rendering (generally 2D or 3D using OpenGL).
virtual Tree * optionTree() const
Menu tree for new options, see object/optionMatcher.h.
ASurface< 2 > * normalMesh()
const ASurface< 2 > * normalMesh() const
static void editNormalsProperties(const std::set< AObject * > &)
ANormalsMesh(const std::vector< AObject * > &ameshes)
void setLength(float length)
virtual ObjectMenu * optionMenu() const
virtual void update(const Observable *observable, void *arg)
This class is an Observer of each of the AObject it groups.
Base Anatomist object (abstract)
virtual std::string generatedObjectType() const
virtual AObject * fusion(const std::vector< AObject * > &objects)
creates the fusion
virtual ~NormalsFusionMethod()
virtual int canFusion(const std::set< AObject * > &objects)
returns 0 if fusion is not possible on the given objects, or a positive number if it is allowed.
virtual std::string ID() const
identifier for the method
This class can be subclassed to represent an object that the programmer wants to have observed.
std::list< carto::rc_ptr< GLItem > > PrimList
ViewState holds information about how a view wants to see an object.