anatomist 6.0.4
3D neuroimaging data viewer
actions.h
Go to the documentation of this file.
1/* This software and supporting documentation are distributed by
2 * Institut Federatif de Recherche 49
3 * CEA/NeuroSpin, Batiment 145,
4 * 91191 Gif-sur-Yvette cedex
5 * France
6 *
7 * This software is governed by the CeCILL-B license under
8 * French law and abiding by the rules of distribution of free software.
9 * You can use, modify and/or redistribute the software under the
10 * terms of the CeCILL-B license as circulated by CEA, CNRS
11 * and INRIA at the following URL "http://www.cecill.info".
12 *
13 * As a counterpart to the access to the source code and rights to copy,
14 * modify and redistribute granted by the license, users are provided only
15 * with a limited warranty and the software's author, the holder of the
16 * economic rights, and the successive licensors have only limited
17 * liability.
18 *
19 * In this respect, the user's attention is drawn to the risks associated
20 * with loading, using, modifying and/or developing or reproducing the
21 * software by the user in light of its specific status of free software,
22 * that may mean that it is complicated to manipulate, and that also
23 * therefore means that it is reserved for developers and experienced
24 * professionals having in-depth computer knowledge. Users are therefore
25 * encouraged to load and test the software's suitability as regards their
26 * requirements in conditions enabling the security of their systems and/or
27 * data to be ensured and, more generally, to use and operate it in the
28 * same conditions as regards security.
29 *
30 * The fact that you are presently reading this means that you have had
31 * knowledge of the CeCILL-B license and that you accept its terms.
32 */
33
34
35#ifndef ANA_OBJECT_ACTIONS_H
36#define ANA_OBJECT_ACTIONS_H
37
38
39#include <cartobase/object/object.h>
40
41namespace anatomist
42{
43
44 class AObject;
46
47
51 {
52 public:
53 typedef void (*ActionObjectCallback)( const std::set<AObject *> & );
54 typedef void (*ActionUntypedCallback)( void * );
55
56 static void fileReload( const std::set<AObject *> & obj );
57 static void colorPalette( const std::set<AObject *> & obj );
58 static void colorMaterial( const std::set<AObject *> & obj );
59 static void colorRendering( const std::set<AObject *> & obj );
60 static void referentialLoad( const std::set<AObject *> & obj );
61 static void fusion2DControl( const std::set<AObject *> & obj );
62 static void fusion3DControl( const std::set<AObject *> & obj );
63 static void textureControl( const std::set<AObject *> & obj );
64 static void saveStatic( const std::set<AObject *> & obj ) ;
65 static std::string specificSaveStatic( const std::set<AObject *> & obj,
66 const std::string& filter,
67 const std::string & caption ) ;
68 static void saveTexture( const std::set<AObject *> & obj ) ;
69 static void extractTexture( const std::set<AObject *> & obj ) ;
70 static std::string specificSaveTexture( const std::set<AObject *> & obj,
71 const std::string& filter,
72 const std::string & caption ) ;
73 static void renameObject( const std::set<AObject *> & obj );
74 static void generateTexture1D( const std::set<AObject *> & obj );
75 static void generateTexture2D( const std::set<AObject *> & obj );
76 static void addGraphWithoutChildren( const std::set<AObject *> & obj );
77 static void displayGraphChildren( const std::set<AObject *> & obj );
78 static void displayGraphRelations( const std::set<AObject *> & obj );
79 static void loadGraphSubObjects( const std::set<AObject *> & obj );
80
81 static bool askName( std::string & newname, const std::string & type = "",
82 const std::string & origname = "" );
83 static void setAutomaticReferential( const std::set<AObject *> & obj );
84 static void graphLabelToName( const std::set<AObject *> & obj );
85 static void graphUseLabel( const std::set<AObject *> & obj );
86 static void graphUseName( const std::set<AObject *> & obj );
87 static void graphUseDefaultLabelProperty( const std::set<AObject *>
88 & obj );
89
109 };
110
111}
112
113namespace carto
114{
117}
118
119#endif
Base Anatomist object (abstract)
Definition Object.h:97
Base callback functions for actions on the objects.
Definition actions.h:51
static ObjectMenuCallback * generateTexture2DMenuCallback()
static ObjectMenuCallback * extractTextureMenuCallback()
static void referentialLoad(const std::set< AObject * > &obj)
void(* ActionObjectCallback)(const std::set< AObject * > &)
Definition actions.h:53
static ObjectMenuCallback * saveStaticMenuCallback()
static ObjectMenuCallback * renameObjectMenuCallback()
static ObjectMenuCallback * colorMaterialMenuCallback()
static void displayGraphRelations(const std::set< AObject * > &obj)
static ObjectMenuCallback * fusion3DControlMenuCallback()
void(* ActionUntypedCallback)(void *)
Definition actions.h:54
static void setAutomaticReferential(const std::set< AObject * > &obj)
static void fusion2DControl(const std::set< AObject * > &obj)
static void extractTexture(const std::set< AObject * > &obj)
static ObjectMenuCallback * graphUseDefaultLabelPropertyMenuCallback()
static ObjectMenuCallback * fileReloadMenuCallback()
static ObjectMenuCallback * graphUseNameMenuCallback()
static ObjectMenuCallback * referentialLoadMenuCallback()
static void renameObject(const std::set< AObject * > &obj)
static void fileReload(const std::set< AObject * > &obj)
static ObjectMenuCallback * fusion2DControlMenuCallback()
static bool askName(std::string &newname, const std::string &type="", const std::string &origname="")
static ObjectMenuCallback * textureControlMenuCallback()
static std::string specificSaveTexture(const std::set< AObject * > &obj, const std::string &filter, const std::string &caption)
static void addGraphWithoutChildren(const std::set< AObject * > &obj)
static void graphLabelToName(const std::set< AObject * > &obj)
static void graphUseName(const std::set< AObject * > &obj)
static void loadGraphSubObjects(const std::set< AObject * > &obj)
static void generateTexture1D(const std::set< AObject * > &obj)
static ObjectMenuCallback * colorPaletteMenuCallback()
static void graphUseLabel(const std::set< AObject * > &obj)
static void textureControl(const std::set< AObject * > &obj)
static ObjectMenuCallback * saveTextureMenuCallback()
static void generateTexture2D(const std::set< AObject * > &obj)
static ObjectMenuCallback * generateTexture1DMenuCallback()
static ObjectMenuCallback * graphUseLabelMenuCallback()
static ObjectMenuCallback * graphLabelToNameMenuCallback()
static void colorMaterial(const std::set< AObject * > &obj)
static void saveStatic(const std::set< AObject * > &obj)
static void saveTexture(const std::set< AObject * > &obj)
static std::string specificSaveStatic(const std::set< AObject * > &obj, const std::string &filter, const std::string &caption)
static void colorRendering(const std::set< AObject * > &obj)
static void colorPalette(const std::set< AObject * > &obj)
static void fusion3DControl(const std::set< AObject * > &obj)
static void graphUseDefaultLabelProperty(const std::set< AObject * > &obj)
static ObjectMenuCallback * displayGraphChildrenMenuCallback()
static void displayGraphChildren(const std::set< AObject * > &obj)
static ObjectMenuCallback * setAutomaticReferentialMenuCallback()
#define DECLARE_GENERIC_OBJECT_TYPE(T)