35 #ifndef ANA_SPARSEMATRIX_CONNECTIVITYMATRIX_H
36 #define ANA_SPARSEMATRIX_CONNECTIVITYMATRIX_H
49 class ConnectivityMatrixProcessingThread;
83 void buildTexture(
int mesh_index, uint32_t vertex,
float time_pos = 0 );
91 std::vector<carto::rc_ptr<ATriangulated> >
meshes()
const;
92 std::vector<carto::rc_ptr<ATexture> >
textures()
const;
97 std::list<ATriangulated *> &
meshes,
98 std::list<ATexture *> & patch_textures,
99 std::list<ATexture *> & basin_textures,
100 PatchMode & pmode, std::set<int> & patches,
104 std::vector<float> & bmax )
const;
111 void buildPatchIndices();
112 void buildPatchTextureThread();
113 void buildPatchMeshes(
const std::vector<int16_t> & pvals,
118 void releaseAnaCursor();
Connectivity matix object: fusions sparse matrix, white mesh, and optionally a gyrus patch texture.
virtual bool render(PrimList &, const ViewState &)
rendering (generally 2D or 3D using OpenGL).
AConnectivityMatrix(const std::vector< AObject * > &obj)
virtual bool boundingBox(std::vector< float > &bmin, std::vector< float > &bmax) const
Fills bmin and bmax with the N-D bounding box extrema in the object's referential coordinates.
const carto::rc_ptr< ATriangulated > marker() const
friend class anatomist::ConnectivityMatrixProcessingThread
void buildPatchTexture(int mesh_index, uint32_t vertex, float time_pos=0)
void processingProgress(AConnectivityMatrix *, int current, int count)
void texturesUpdated(AConnectivityMatrix *)
virtual ~AConnectivityMatrix()
virtual int MType() const
Precise type of multi-object.
virtual void update(const Observable *observable, void *arg)
This class is an Observer of each of the AObject it groups.
static bool checkObjects(const std::set< AObject * > &objects, AObject *&matrix, std::list< ATriangulated * > &meshes, std::list< ATexture * > &patch_textures, std::list< ATexture * > &basin_textures, PatchMode &pmode, std::set< int > &patches, bool &transpose)
std::vector< carto::rc_ptr< ATexture > > textures() const
void buildColumnPatchTexture(int mesh_index, uint32_t vertex, float time_pos=0)
void buildColumnTexture(int mesh_index, uint32_t vertex, float time_pos=0)
void buildTexture(int mesh_index, uint32_t vertex, float time_pos=0)
std::vector< carto::rc_ptr< ATriangulated > > meshes() const
Base Anatomist object (abstract)
int type() const
Object type identifier.
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.