34 #ifndef ANATOMIST_MODULE_SURFPAINTTOOLS_H
35 #define ANATOMIST_MODULE_SURFPAINTTOOLS_H
79 void setPolygon(
int p) { IDPolygonSpinBox->setValue(p); }
81 void setVertex(
int v) { IDVertexSpinBox->setValue(v); }
85 { textureFloatSpinBox->setRange(
min,
max ); }
87 {
return textureFloatSpinBox->value(); }
89 { textureFloatSpinBox->setValue(v); }
96 float oldTextureValue );
99 return !listIndexVertexBrushPath.empty() || !listIndexVertexHolesPath.empty() || !holesObject.empty();
171 void popAllButtonPaintToolBar();
172 void clearUndoneGeodesicPath();
173 void addSimpleShortPath(
int indexSource,
int indexDest );
174 void undoSimpleShortPath();
175 void redoSimpleShortPath();
176 void clearUndoneHolesPaths();
177 void clearUndoneSelectFill();
178 float currentTextureValue(
unsigned vertexIndex )
const;
179 void clearRedoBuffer();
194 QToolBar *tbTextureValue;
195 QDoubleSpinBox *textureFloatSpinBox;
201 QSpinBox *IDPolygonSpinBox;
202 QSpinBox *IDVertexSpinBox;
204 QToolBar *tbControls;
206 QToolButton *colorPickerAction;
207 QToolButton *selectionAction;
208 QToolButton *pathAction;
209 QAction *shortestPathAction;
210 QAction *sulciPathAction;
211 QAction *gyriPathAction;
213 QToolButton *paintBrushAction;
214 QToolButton *magicBrushAction;
216 QToolButton *distanceAction;
218 QToolButton *validateEditAction;
219 QToolButton *eraseAction;
220 QToolButton *clearPathAction;
221 QToolButton *saveAction;
223 QComboBox *constraintList;
225 QSpinBox *toleranceSpinBox;
226 QLabel *toleranceSpinBoxLabel;
227 QSpinBox *constraintPathSpinBox;
228 QLabel *constraintPathSpinBoxLabel;
230 QDoubleSpinBox *textureValueMinSpinBox;
231 QDoubleSpinBox *textureValueMaxSpinBox;
233 GLuint constraintPathValue;
234 GLuint toleranceValue;
235 float stepToleranceValue;
238 std::string shortestPathSelectedType;
240 aims::GeodesicPath *sp;
241 aims::GeodesicPath *sp_sulci;
242 aims::GeodesicPath *sp_gyri;
244 std::vector<std::set<uint> > neighbours;
247 std::vector<unsigned> listIndexVertexPathSP;
248 std::vector<unsigned> listIndexVertexSelectSP;
250 std::vector<unsigned> listIndexVertexBrushPath;
251 std::vector<unsigned> listIndexVertexHolesPath;
253 std::set<int> listIndexVertexFill;
255 std::vector<carto::rc_ptr<ATriangulated> > pathObject;
256 std::vector<carto::rc_ptr<ATriangulated> > fillObject;
257 std::vector<carto::rc_ptr<ATriangulated> > holesObject;
3D window, OpenGL rendering
Base Anatomist object (abstract)
High-level Texture object in Anatomist.
T min(const Volume< T > &vol)
T max(const Volume< T > &vol)
AIMSDATA_API TimeTexture< float > Texture1d