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;
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 ; }
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]) ) ) ;
200 float myChangingFlag ;
201 float myUpdatingFlag ;
202 anatomist::RoiLevelSetActionView_Private * _private ;
void mixMethodChanged(const QString &newMixMethod)
void lowLevelChanged(int newLowLevel)
void percentageOfMaxChanged(const QString &)
void levelSetActivationChanged(int button)
void mixFactorChanged(int newMixFactor)
RoiLevelSetActionView(anatomist::RoiLevelSetAction *myAction, QWidget *parent)
void dimensionModeChanged(int newDimensionMode)
void maxSizeChanged(const QString &newMaxSize)
void highLevelChanged(int newHighLevel)
virtual void update(const anatomist::Observable *, void *)
This method is called whenever the observed object is changed.
virtual ~RoiLevelSetActionView()
Anatomist graph object: a list that manages destruction of its sub-elements.
Base Anatomist object (abstract)
This class can be subclassed to represent an object that the programmer wants to have observed.
A class can implement the Observer interface when it wants to be informed of changes in observable ob...
virtual void update(const Observable *observable, void *arg)
This method is called whenever the observed object is changed.
virtual ~RoiLevelSetActionSharedData()
int percentageOfMaximum()
static RoiLevelSetActionSharedData * instance()
virtual bool viewableAction() const
float percentageOfMaximum()
virtual ~RoiLevelSetAction()
void replaceRegion(int x, int y, int globalX, int globalY)
void setPercentageOfMaximum(float percentageOfMaximum)
void setDimensionModeTo2D()
void highLevelChanged(float newHighLevel)
virtual void unregisterObservable(anatomist::Observable *)
bool levelSetActivation()
void setMaxSize(float maxSize)
static Action * creator()
void setDimensionModeTo3D()
void setMixMethod(const std::string &)
void addToRegion(int x, int y, int globalX, int globalY)
virtual QWidget * actionView(QWidget *)
virtual std::string name() const
void removeFromRegion(int x, int y, int globalX, int globalY)
virtual void update(const anatomist::Observable *, void *)
void lowLevelChanged(float newLowLevel)
void deactivateLevelSet()