33 #ifndef ROI_LEVELSET_ACTION_H    34 #define ROI_LEVELSET_ACTION_H    54   class RoiLevelSetActionView_Private ;
    66     int maxSize() { 
return (
int) myMaxSize ; }
    75     bool myLevelSetActivation ;
    76     bool myLevelSetDeactivation ;
    84     float myPercentageOfMaximum ;
    85     std::string myMixMethod ;
    87     bool myGettingCurrentImage ;
    88     bool myActivatingLevelSet ;
   105     virtual std::string name() 
const;
   107     void activateLevelSet() ;
   108     void deactivateLevelSet() ;
   109     void lowLevelChanged( 
float newLowLevel ) ;
   110     void highLevelChanged( 
float newHighLevel ) ;
   113     float lowLevel() { 
return _sharedData->myLowLevel ; }
   115     float imageMax() { 
return _sharedData->myImageMax ; }
   116     float imageMin() { 
return _sharedData->myImageMin ; }
   119     float maxSize() { 
return _sharedData->myMaxSize ; }
   121     std::string 
mixMethod() { 
return _sharedData->myMixMethod ; }
   123     void setDimensionModeTo2D() ;
   124     void setDimensionModeTo3D() ;
   125     void setMixMethod( 
const std::string& ) ;
   126     void setMixFactor( 
float ) ;
   127     void setMaxSize( 
float maxSize ) ;
   130     void replaceRegion( 
int x, 
int y, 
int globalX, 
int globalY ) ;
   131     void addToRegion( 
int x, 
int y, 
int globalX, 
int globalY ) ;
   132     void removeFromRegion( 
int x, 
int y, 
int globalX, 
int globalY ) ;
   134     float realMin( ) 
const ;
   135     float realMax( ) 
const ;
   137     virtual QWidget * actionView( QWidget * ) ;
   140     static Action* creator() ;
   149     void updateObjPal() ;
   152                      std::list< std::pair< Point3d, ChangesItem> >& changes, 
bool add ) ;
   153     bool fillPoint( 
const Point3d& pc, 
int t,
   158                     std::queue<Point3d>& trialPoints, 
bool replace = 
false )  ;
   161     struct PointLess : 
public std::binary_function< Point3d, Point3d , bool>
   165         return( p1[2] < p2[2] 
   166                 || ( (p1[2] == p2[2]) && (p1[1] < p2[1])  )
   167                 || ( (p1[2] == p2[2]) 
   168                      && (p1[1] == p2[1]) && (p1[0] < p2[0]) ) ) ;
   190   void levelSetActivationChanged( 
int button ) ;
   191   void lowLevelChanged( 
int newLowLevel ) ;
   192   void highLevelChanged( 
int newHighLevel ) ;
   193   void dimensionModeChanged( 
int newDimensionMode ) ;
   194   void maxSizeChanged( 
const QString& newMaxSize ) ;
   195   void percentageOfMaxChanged(
const QString&) ;
   196   void mixFactorChanged( 
int newMixFactor ) ;
   197   void mixMethodChanged( 
const QString& newMixMethod ) ;
   200   float myChangingFlag ;
   201   float myUpdatingFlag ;
   202   anatomist::RoiLevelSetActionView_Private * _private ;
 Anatomist graph object: a list that manages destruction of its sub-elements. 
 
Base Anatomist object (abstract) 
 
friend class RoiLevelSetAction
 
A class can implement the Observer interface when it wants to be informed of changes in observable ob...
 
static RoiLevelSetActionSharedData * instance()
 
This class can be subclassed to represent an object that the programmer wants to have observed...
 
virtual void unregisterObservable(Observable *)
Called when an observable is destroyed, only called by Observable: don't use this function directly...
 
float percentageOfMaximum()
 
virtual ~RoiLevelSetActionSharedData()
 
int percentageOfMaximum()
 
virtual void update(const Observable *observable, void *arg)
This method is called whenever the observed object is changed. 
 
bool levelSetActivation()
 
virtual bool viewableAction() const