MorphoGraphX  2.0-1-227
Public Types | Public Member Functions | Friends | List of all members
mgx::Mesh Class Reference

#include <Mesh.hpp>

Public Types

enum  SurfView { SURF_VERTEX, SURF_LABEL, SURF_TRIANGLE, SURF_VIEW_COUNT }
 Surface visualization type. More...
 

Public Member Functions

 Mesh (int id, const Stack *stack)
 Create an empty mesh attached to the stack. More...
 
 ~Mesh ()
 Copy the mesh. More...
 
Global properties

Properties for both mesh and surface.

If any of these properties are saved, it will be in the project file.

int id () const
 Id of the current mesh. More...
 
void setId (int i)
 Change the id of the mesh. More...
 
int userId () const
 Id as seen by the user. More...
 
const Stackstack () const
 Returns the stack associated to this mesh. More...
 
const QString & file () const
 Returns the name of the mesh file. More...
 
void setFile (const QString &file=QString())
 Set the name of the mesh file. More...
 
bool scaled () const
 Returns true if the mesh is scaled. More...
 
void setScaled (bool on=true)
 Set if the mesh is scaled. More...
 
bool transformed () const
 Returns true if the mesh is transformed. More...
 
void setTransformed (bool on=true)
 Set if the mesh is transformed. More...
 
bool showBBox () const
 Returns true if the bounding box is shown. More...
 
void setShowBBox (bool on=true)
 Set if the bounding box is shown. More...
 
int viewLabel () const
 Returns the current label, without modifying it. More...
 
void setLabel (int l)
 Sets the current label. More...
 
int nextLabel ()
 Increment the current label and return. More...
 
Mesh Attributes. These are saved along with the mesh and can be extended by the user.
const Attributesattributes () const
 Get the mesh attributes. More...
 
Attributesattributes ()
 
IntIntAttrparents ()
 Reference to the map from each label to its parent. More...
 
const QString & meshType ()
 Returns the mesh type. More...
 
const QString & setMeshType (const QString &mType)
 Set the mesh type. More...
 
bool mesh3D ()
 Convenience function to tell if a 3D mesh (from viewpoint of rendering) More...
 
IntPoint3fAttrlabelCenter ()
 Reference to the map from label to a center position. More...
 
IntPoint3fAttrlabelNormal ()
 Reference to the map from label to a normal. More...
 
IntPoint3fAttrlabelCenterVis ()
 Reference to the map from label to a position. More...
 
IntPoint3fAttrlabelNormalVis ()
 Reference to the map from label to a normal. More...
 
IntPoint3fAttrparentCenter ()
 Reference to the map from parent label to a position. More...
 
IntPoint3fAttrparentNormal ()
 Reference to the map from parent label to a normal. More...
 
IntPoint3fAttrparentCenterVis ()
 Reference to the map from parent label to a position. More...
 
IntPoint3fAttrparentNormalVis ()
 Reference to the map from parent label to a normal. More...
 
VtxPoint2fAttrtexCoord2d ()
 Reference to a map of 2D texture coordinates, this is used to load 3D images like that from the Keyance. More...
 
void reset ()
 Reset the whole mesh and its attributes. More...
 
Structure
vvGraphgraph ()
 Get the VV graph of the mesh. More...
 
const vvGraphgraph () const
 Get the VV graph of the mesh. More...
 
vvGraphjunctions ()
 Get the VV junction graph. More...
 
const vvGraphjunctions () const
 Get the VV junction graph. More...
 
const CellTissuetissue () const
 Get the Cell Tissue. More...
 
CellTissuetissue ()
 Get the Cell Tissue. More...
 
cellGraphcells ()
 Get the cell graph. More...
 
const cellGraphcells () const
 Get the cell graph. More...
 
bool empty () const
 True if the mesh is empty (i.e. More...
 
CellTissue::DistNhbdSnhbdS ()
 Get the neighborhood object for the S graph. More...
 
CellTissue::DistNhbdCnhbdC ()
 Get the neighborhood object for the cell graph. More...
 
int getLabel (const vertex &v1, const vertex &v2, const vertex &v3, const IntIntAttr &parents)
 Returns the number of vertices in the mesh. More...
 
int getLabel (int label, const IntIntAttr &parents)
 Returns the label or parent, given a label. More...
 
bool chkGraph (vvGraph &S)
 Check the graph for consistency. More...
 
bool chkGraph ()
 
IntIntVIdSetMapwallVId ()
 Reference to the map from each wall to the list of vertexes in the wall. More...
 
const IntIntVIdSetMapwallVId () const
 Returns the map from each wall to the list of vertexes in the wall. More...
 
IntIntFloatAttrwallGeom ()
 Reference to the map from each wall to the length of the wall. More...
 
IntIntSetMaplabelNeighbors ()
 Reference to the map from labels to the set of neighbor labels. More...
 
const IntIntSetMaplabelNeighbors () const
 Returns the map from labels to the set of neighbors labels. More...
 
void updateWallGeometry (float borderSize)
 Update labelNeighbors, wallVId and wallGeom to reflect current data structure. More...
 
bool isBordTriangle (int label, vertex v, vertex n, vertex m, IntIntPair &rp) const
 True if (v,n,m) is on the border of the label. More...
 
void markBorder (float borderSize)
 Mark all triangles closer than borderSize from a border as being a border triangle. More...
 
void updateCentersNormals ()
 Search for the vertex closest to position of cell center fills in labelCenter, labelNormal, labelCenterVis, labelNormalVis. More...
 
Surface methods
TransferFunction surfFct () const
 Return the transfer function used to draw the surface in normal mode. More...
 
void setSurfFct (const TransferFunction &f)
 Change the transfer function used to draw the surface in normal mode. More...
 
bool surfFctChanged () const
 Returns true if the normal transfer function has been changed during the current process. More...
 
TransferFunction heatFct () const
 Return the transfer function used to draw the surface in heat mode. More...
 
void setHeatFct (const TransferFunction &f)
 Change the transfer function used to draw the surface in heat mode. More...
 
bool heatFctChanged () const
 Returns true if the heat transfer function has been changed during the current process. More...
 
float opacity () const
 Get the current opacity level of the surface. More...
 
void setOpacity (float f)
 Change the current opactity level of the surface. More...
 
float brightness () const
 Get the current brightness of the surface. More...
 
void setBrightness (float f)
 Change the current brightness of the surface. More...
 
bool showSurface () const
 True if the surface is currently visible to the user. More...
 
void setShowSurface (bool val=true)
 Show the surface to the user. More...
 
void setShowVertex (const QString &s="", bool setView=true)
 Set the surface vertex display. More...
 
void setShowTriangle (const QString &s="", bool setView=true)
 Set the surface triangle display. More...
 
void setShowLabel (const QString &s="", bool setView=true)
 Set the surface label display. More...
 
bool culling () const
 Returns if the back surface is culled. More...
 
void setCulling (bool cul)
 Cull the back surface. More...
 
bool blending () const
 Return if the surface is rendered blended or not. More...
 
void setBlending (bool b)
 Set the blending attribute. More...
 
SurfView surfView () const
 Returns the current visualization for the surface. More...
 
void setSurfView (SurfView view)
 Change the view mode. More...
 
QString surfVertexView () const
 Returns the vertex visualization. More...
 
QString surfTriangleView () const
 Returns the triangle visualization. More...
 
QString surfLabelView () const
 Returns the label visualization. More...
 
bool showSignal () const
 Convenience functions. More...
 
bool showLabels () const
 
bool showHeat () const
 
bool showWallHeat () const
 
bool showTriangleValue () const
 
bool useParents ()
 Returns if we should use parents or labels. More...
 
void setUseParents (bool val)
 Show the color of the surface. More...
 
bool & hasImgTex ()
 True if the surface has a texture attached to it. More...
 
const QImage & imgTex () const
 Get the current texture attached to the surface. More...
 
QImage & imgTex ()
 
void setImgTex (const QImage &img)
 Set the texture attached to the surface. More...
 
void clearImgTex ()
 Remove any texture attached to the surface. More...
 
Updating the graphical representation
void updateAll ()
 To be called when the mesh structure changed. More...
 
void updateTriangles ()
 To be called if properties of the triangles changed. More...
 
void updateLines ()
 To be called if properties of the lines changed. More...
 
void updatePositions ()
 To be called if the position of the points changed. More...
 
void updateSelection ()
 To be called if the selection of the points changed. More...
 
int changes () const
 Returns what changed in the current process. More...
 

Friends

class SetupProcess
 

Mesh methods

bool showMesh () const
 Is the mesh currently visible to the user. More...
 
QString meshView () const
 Return the current view mode for the mesh. More...
 
void setShowMesh (bool show=true)
 Set the mesh visibility. More...
 
void setMeshView (const QString &s, bool setShow=true)
 Set the mesh display and view. More...
 
bool showAxis () const
 Is the axis currently visible to the user. More...
 
QString axisView () const
 Return the current view mode for the axis. More...
 
void setShowAxis (bool show=true)
 Set the axis display. More...
 
void setAxisView (const QString &s, bool setShow=true)
 Set the axis display and view. More...
 
bool showMeshLines () const
 Are mesh lines visible. More...
 
bool showMeshPoints () const
 Are mesh points visible. More...
 
bool showMeshCellMap () const
 Are cell numbers visible. More...
 
void setShowMeshLines (bool show)
 Set if the mesh lines are visible. More...
 
void setShowMeshPoints (bool show)
 Set if the mesh points are visible. More...
 
void setShowMeshCellMap (bool show)
 Set if the cell numbers are visible. More...
 
std::vector< vertexselectedVertices () const
 Returns a vector with the list of selected vertices. More...
 
int selectedCount () const
 Returns the count of selected vertices (from S). More...
 
std::vector< vertexactiveVertices () const
 Returns a vector with the list of active vertices. More...
 
void getConnectedVertices (const vvGraph &S, vvGraph &vSet) const
 Starting with a set of vertices, extend to connected region. More...
 
int getConnectedRegions (const vvGraph &S, VVGraphVec &cellVId, VtxIntMap &vtxCell) const
 Get a list of connected regions (3D cells) More...
 
bool clearSelection ()
 Clear selection. More...
 
void correctSelection (bool inclusive)
 Correct selection. More...
 
static void getNhbd (const vvGraph &S, const vertex &v, float radius, VtxSet &nbs)
 Get the neighborhood of a vertex. More...
 

Heat Map methods

The heat map associates a heat to a label or a wall.

Heat map data is stored in the attributes, so it is save/restored with the mesh.

typedef std::pair< vertex, SymmetricTensorVtxSymTensorPair
 Tensor quantity for each vertex. More...
 
IntFloatAttrlabelHeat ()
 Reference to map of heat data by label. More...
 
QString & heatMapUnit ()
 Reference to the unit used for the current heat map. More...
 
QString & heatMapScaling ()
 
Point2fheatMapBounds ()
 Return the upper and lower bounds for the heat. More...
 
Point2f calcHeatMapBounds ()
 Scale the heat map bounds to the existing range. More...
 
IntIntFloatAttrwallHeat ()
 Reference to map of heat data by wall (i.e. More...
 
Point2fwallHeatBounds ()
 Upper and lower bounds for the heat. More...
 
QString & wallHeatUnit ()
 Wall heat unit. More...
 
TriVec3ColorbAttrtriangleColor ()
 Triangle colors. More...
 
TriIntAttrtriangleIndex ()
 Triangle index for indexed color map mode. More...
 
TriFloatAttrtriangleValue ()
 Triangle value for interpolated color map mode. More...
 
ColorbVectriangleValueColors ()
 Return the colormap for the triangle values. More...
 
Point2ftriangleValueBounds ()
 Return the upper and lower bounds for the triangle value. More...
 
QString & triangleValueUnit ()
 Reference to the unit used for triangle values. More...
 
ColorbVectriangleIndexColors ()
 Return the colormap for the triangle values. More...
 
CellVec2ColorbAttrcellColor ()
 Cell colors. More...
 
bool setAxisColor (const Colorb &pos, const Colorb &neg, const SymmetricTensor &s, Vec3Colorb &color)
 Set an axis color based on sign. More...
 
float axisWidth ()
 
float setAxisWidth (float width)
 
float axisOffset ()
 
float setAxisOffset (float offset)
 
IntSymTensorAttrcellAxis ()
 Cell axis tensor quantity for each cell. More...
 
IntMatrix3fAttrcellAxisVis ()
 Cell axis for visualization. More...
 
IntVec3ColorbAttrcellAxisColor ()
 Returns the map from label to cells axis colors (array of 3 Point3f) More...
 
bool setCellAxisColor (const Colorb &pos, const Colorb &neg)
 Set the cell axis color based on the sign for each eigenvalue. More...
 
QString cellAxisType ()
 Return the type of the current cell axis. More...
 
QString setCellAxisType (const QString &s)
 Set the type of the current cell axis. More...
 
QString cellAxisUnit ()
 Unit for the length of the cell axis. More...
 
QString setCellAxisUnit (const QString &s)
 Unit for the length of the cell axis. More...
 
void clearCellAxis ()
 Remove any cell axis. More...
 
TriSymTensorAttrtriangleAxis ()
 Tensor quantity for each triangle. More...
 
TriMatrix3fAttrtriangleAxisVis ()
 Cell axis for visualization. More...
 
TriVec3ColorbAttrtriangleAxisColor ()
 Returns the map from label to cells axis colors (array of 3 Point3f) More...
 
bool setTriangleAxisColor (const Colorb &pos, const Colorb &neg)
 Set the cell axis color based on the sign for each eigenvalue. More...
 
VtxSymTensorAttrvertexAxis ()
 
VtxMatrix3fAttrvertexAxisVis ()
 Cell axis for visualization. More...
 
VtxVec3ColorbAttrvertexAxisColor ()
 Returns the map from label to cells axis colors (array of 3 Point3f) More...
 
bool setVertexAxisColor (const Colorb &pos, const Colorb &neg)
 Set the cell axis color based on the sign for each eigenvalue. More...
 
IntMatrix3fMapvvCorrespondence ()
 Returns a reference to the map of correspondence between vertices in mesh1 and mesh2 (store vertices positions) More...
 
bool & showVVCorrespondence ()
 

Signal methods. The signal can arise from a fluorescence intensity

projection, a curvature projection, or from another process.

These methods specifies the range and the units.

QString & signalUnit ()
 Reference to the unit used for the signal. More...
 
Point2fsignalBounds ()
 Reference to the upper and lower bounds for the signal. More...
 
const BoundingBox3fboundingBox () const
 Reference to the mesh bounding box. More...
 
BoundingBox3fboundingBox ()
 
void setBoundingBox (const BoundingBox3f &bbox)
 Set the mesh bounding box. More...
 
void updateBBox ()
 Update the bounding box from the mesh. More...
 
int & ccTab ()
 Cell complex tab. More...
 
QString & ccName ()
 Current cell complex. More...
 
QString & deleteProcessName (QString &meshType)
 Process use to to delete cells or vertices from different mesh types. More...
 
IntVtxMapvMap ()
 Map vertex saveId to vertex. More...
 
IntCellMapcMap ()
 Map cell saveId to cell. More...
 
bool readVertices (QIODevice &file, VtxVec &V, bool transform)
 Read in vertices. More...
 
bool readVertexList (QIODevice &file, vvGraph &S)
 Read in vertex list. More...
 
bool readNhbds (QIODevice &file, vvGraph &S)
 Read in neighborhoods. More...
 
bool readCellMesh (QIODevice &file, bool transform)
 Read in a cellular mesh. More...
 
bool read (QIODevice &file, bool transform)
 Read in a mesh. More...
 
bool writeVertices (QIODevice &file, const vvGraph &S, bool transform)
 Write out vertices. More...
 
bool writeVertexList (QIODevice &file, const vvGraph &S)
 Write the vertex list. More...
 
bool writeNhbds (QIODevice &file, const vvGraph &S)
 Write out neighborhoods. More...
 
bool writeCellMesh (QIODevice &file, bool transform)
 Write out a cellular mesh. More...
 
bool write (QIODevice &file, bool transform)
 Write out a mesh. More...
 
static bool meshFromTriangles (vvGraph &S, const std::vector< vertex > &vertices, const std::vector< Point3i > &triangles, bool checkUnique=true)
 Create the mesh from a triangle list. More...
 

Detailed Description

This class holds the actual mesh as a VV Graph and all sort of properties for it, including visualization ones.

Note that, in MorphoGraphX, the user sees the surface, or the mesh. The surface is continuous, when the mesh is the actual connectivity of the vertices.

Definition at line 54 of file Mesh.hpp.

Member Typedef Documentation

◆ VtxSymTensorPair

Tensor quantity for each vertex.

The tensors are encoded as three vectors: ev1, ev2, evals. Where ev1 and ev2 are the two first eigenvectors and evals is the vector with the three eigenvalues.

This map does not get drawn, but rather one populates vertexAxisVis with the correct scaling from this map.

Definition at line 1203 of file Mesh.hpp.

Member Enumeration Documentation

◆ SurfView

Surface visualization type.

Enumerator
SURF_VERTEX 

Vertex level rendering such as projected signal.

SURF_LABEL 

Label level rendering.

SURF_TRIANGLE 

Triangle level rendering.

SURF_VIEW_COUNT 

Count of SurfView entries.

Definition at line 62 of file Mesh.hpp.

Constructor & Destructor Documentation

◆ Mesh()

mgx::Mesh::Mesh ( int  id,
const Stack stack 
)

Create an empty mesh attached to the stack.

Create an empty mesh attached to the stack

◆ ~Mesh()

mgx::Mesh::~Mesh ( )

Copy the mesh.

Mesh destructor

Member Function Documentation

◆ activeVertices()

std::vector<vertex> mgx::Mesh::activeVertices ( ) const

Returns a vector with the list of active vertices.

These are either the selected vertices, or all of them if no vertex was selected.

◆ attributes() [1/2]

Attributes& mgx::Mesh::attributes ( )
inline

Definition at line 192 of file Mesh.hpp.

◆ attributes() [2/2]

const Attributes& mgx::Mesh::attributes ( ) const
inline

Get the mesh attributes.

Definition at line 187 of file Mesh.hpp.

◆ axisOffset()

float mgx::Mesh::axisOffset ( )
inline

Definition at line 1062 of file Mesh.hpp.

◆ axisView()

QString mgx::Mesh::axisView ( ) const
inline

Return the current view mode for the axis.

Definition at line 763 of file Mesh.hpp.

◆ axisWidth()

float mgx::Mesh::axisWidth ( )
inline

Definition at line 1040 of file Mesh.hpp.

◆ blending()

bool mgx::Mesh::blending ( ) const
inline

Return if the surface is rendered blended or not.

Definition at line 642 of file Mesh.hpp.

◆ boundingBox() [1/2]

BoundingBox3f& mgx::Mesh::boundingBox ( )
inline

Definition at line 1285 of file Mesh.hpp.

◆ boundingBox() [2/2]

const BoundingBox3f& mgx::Mesh::boundingBox ( ) const
inline

Reference to the mesh bounding box.

Definition at line 1281 of file Mesh.hpp.

◆ brightness()

float mgx::Mesh::brightness ( ) const
inline

Get the current brightness of the surface.

Definition at line 571 of file Mesh.hpp.

◆ calcHeatMapBounds()

Point2f mgx::Mesh::calcHeatMapBounds ( )

Scale the heat map bounds to the existing range.

◆ ccName()

QString& mgx::Mesh::ccName ( )
inline

Current cell complex.

Definition at line 1310 of file Mesh.hpp.

◆ ccTab()

int& mgx::Mesh::ccTab ( )
inline

Cell complex tab.

Definition at line 1303 of file Mesh.hpp.

◆ cellAxis()

IntSymTensorAttr& mgx::Mesh::cellAxis ( )
inline

Cell axis tensor quantity for each cell.

The tensors are encoded as three vectors: ev1, ev2, evals. Where ev1 and ev2 are the two first eigenvectors and evals is the vector with the three eigenvalues.

This map does not get drawn, but rather one populates cellAxisVis with the correct scaling from this map.

Definition at line 1087 of file Mesh.hpp.

◆ cellAxisColor()

IntVec3ColorbAttr& mgx::Mesh::cellAxisColor ( )
inline

Returns the map from label to cells axis colors (array of 3 Point3f)

Definition at line 1103 of file Mesh.hpp.

◆ cellAxisType()

QString mgx::Mesh::cellAxisType ( )
inline

Return the type of the current cell axis.

If an empty string, there is no cell axis.

Definition at line 1118 of file Mesh.hpp.

◆ cellAxisUnit()

QString mgx::Mesh::cellAxisUnit ( )
inline

Unit for the length of the cell axis.

Definition at line 1137 of file Mesh.hpp.

◆ cellAxisVis()

IntMatrix3fAttr& mgx::Mesh::cellAxisVis ( )
inline

Cell axis for visualization.

Definition at line 1095 of file Mesh.hpp.

◆ cellColor()

CellVec2ColorbAttr& mgx::Mesh::cellColor ( )
inline

Cell colors.

Definition at line 1023 of file Mesh.hpp.

◆ cells() [1/2]

cellGraph& mgx::Mesh::cells ( )
inline

Get the cell graph.

Definition at line 385 of file Mesh.hpp.

◆ cells() [2/2]

const cellGraph& mgx::Mesh::cells ( ) const
inline

Get the cell graph.

Definition at line 390 of file Mesh.hpp.

◆ changes()

int mgx::Mesh::changes ( ) const
inline

Returns what changed in the current process.

Definition at line 888 of file Mesh.hpp.

◆ chkGraph() [1/2]

bool mgx::Mesh::chkGraph ( )
inline

Definition at line 428 of file Mesh.hpp.

◆ chkGraph() [2/2]

bool mgx::Mesh::chkGraph ( vvGraph S)
inline

Check the graph for consistency.

Returns true if any problems were found

Definition at line 427 of file Mesh.hpp.

◆ clearCellAxis()

void mgx::Mesh::clearCellAxis ( )

Remove any cell axis.

◆ clearImgTex()

void mgx::Mesh::clearImgTex ( )
inline

Remove any texture attached to the surface.

Definition at line 719 of file Mesh.hpp.

◆ clearSelection()

bool mgx::Mesh::clearSelection ( )

Clear selection.

Returns true if anything cleared

◆ cMap()

IntCellMap& mgx::Mesh::cMap ( )
inline

Map cell saveId to cell.

Definition at line 1352 of file Mesh.hpp.

◆ correctSelection()

void mgx::Mesh::correctSelection ( bool  inclusive)

Correct selection.

Make sure the vertices are "correctly" selected. This means that:

  • border vertices will be selected if all their non-border neighbors are selected
  • border vertices will be selected if they don't have a non-border neighbors and at least one border neighbor is selected
  • if the selection is inclusive, border vertices will be selected if at least one non-border neighbor is selected

◆ culling()

bool mgx::Mesh::culling ( ) const
inline

Returns if the back surface is culled.

Definition at line 632 of file Mesh.hpp.

◆ deleteProcessName()

QString& mgx::Mesh::deleteProcessName ( QString &  meshType)
inline

Process use to to delete cells or vertices from different mesh types.

Definition at line 1317 of file Mesh.hpp.

◆ empty()

bool mgx::Mesh::empty ( ) const
inline

True if the mesh is empty (i.e.

the graph is empty)

Definition at line 395 of file Mesh.hpp.

◆ file()

const QString& mgx::Mesh::file ( ) const
inline

Returns the name of the mesh file.

Definition at line 124 of file Mesh.hpp.

◆ getConnectedRegions()

int mgx::Mesh::getConnectedRegions ( const vvGraph S,
VVGraphVec cellVId,
VtxIntMap vtxCell 
) const

Get a list of connected regions (3D cells)

◆ getConnectedVertices()

void mgx::Mesh::getConnectedVertices ( const vvGraph S,
vvGraph vSet 
) const

Starting with a set of vertices, extend to connected region.

◆ getLabel() [1/2]

int mgx::Mesh::getLabel ( const vertex v1,
const vertex v2,
const vertex v3,
const IntIntAttr parents 
)

Returns the number of vertices in the mesh.

Returns the label or parent of the triangle (v1,v2,v3)

◆ getLabel() [2/2]

int mgx::Mesh::getLabel ( int  label,
const IntIntAttr parents 
)

Returns the label or parent, given a label.

◆ getNhbd()

static void mgx::Mesh::getNhbd ( const vvGraph S,
const vertex v,
float  radius,
VtxSet nbs 
)
static

Get the neighborhood of a vertex.

◆ graph() [1/2]

vvGraph& mgx::Mesh::graph ( )
inline

Get the VV graph of the mesh.

Definition at line 355 of file Mesh.hpp.

◆ graph() [2/2]

const vvGraph& mgx::Mesh::graph ( ) const
inline

Get the VV graph of the mesh.

Definition at line 360 of file Mesh.hpp.

◆ hasImgTex()

bool& mgx::Mesh::hasImgTex ( )
inline

True if the surface has a texture attached to it.

Definition at line 696 of file Mesh.hpp.

◆ heatFct()

TransferFunction mgx::Mesh::heatFct ( ) const
inline

Return the transfer function used to draw the surface in heat mode.

Definition at line 533 of file Mesh.hpp.

◆ heatFctChanged()

bool mgx::Mesh::heatFctChanged ( ) const
inline

Returns true if the heat transfer function has been changed during the current process.

Definition at line 549 of file Mesh.hpp.

◆ heatMapBounds()

Point2f& mgx::Mesh::heatMapBounds ( )
inline

Return the upper and lower bounds for the heat.

Definition at line 924 of file Mesh.hpp.

◆ heatMapScaling()

QString& mgx::Mesh::heatMapScaling ( )
inline

Definition at line 916 of file Mesh.hpp.

◆ heatMapUnit()

QString& mgx::Mesh::heatMapUnit ( )
inline

Reference to the unit used for the current heat map.

It is shown on the color bar.

Definition at line 911 of file Mesh.hpp.

◆ id()

int mgx::Mesh::id ( ) const
inline

Id of the current mesh.

This is the same id used in the Process:mesh(int) method.

Definition at line 100 of file Mesh.hpp.

◆ imgTex() [1/2]

QImage& mgx::Mesh::imgTex ( )
inline

Definition at line 705 of file Mesh.hpp.

◆ imgTex() [2/2]

const QImage& mgx::Mesh::imgTex ( ) const
inline

Get the current texture attached to the surface.

Definition at line 704 of file Mesh.hpp.

◆ isBordTriangle()

bool mgx::Mesh::isBordTriangle ( int  label,
vertex  v,
vertex  n,
vertex  m,
IntIntPair rp 
) const

True if (v,n,m) is on the border of the label.

rp will be set to the wall the triangle is on, if any.

◆ junctions() [1/2]

vvGraph& mgx::Mesh::junctions ( )
inline

Get the VV junction graph.

Definition at line 365 of file Mesh.hpp.

◆ junctions() [2/2]

const vvGraph& mgx::Mesh::junctions ( ) const
inline

Get the VV junction graph.

Definition at line 370 of file Mesh.hpp.

◆ labelCenter()

IntPoint3fAttr& mgx::Mesh::labelCenter ( )
inline

Reference to the map from label to a center position.

This position will be interpreted as the center of the label, and used to draw the label number on the mesh or growth directions on cellular mesh.

Definition at line 238 of file Mesh.hpp.

◆ labelCenterVis()

IntPoint3fAttr& mgx::Mesh::labelCenterVis ( )
inline

Reference to the map from label to a position.

This position will be intepreted as the center of the label, and used to draw growth directions on a non-cellular mesh.

Definition at line 262 of file Mesh.hpp.

◆ labelHeat()

IntFloatAttr& mgx::Mesh::labelHeat ( )
inline

Reference to map of heat data by label.

Definition at line 901 of file Mesh.hpp.

◆ labelNeighbors() [1/2]

IntIntSetMap& mgx::Mesh::labelNeighbors ( )
inline

Reference to the map from labels to the set of neighbor labels.

A label is neighbors of another ones if they share at least an edge of the mesh.

Note
You shouldn't need to modify this structure directly. You should instead call Mesh::updateWallGeometry()

Definition at line 472 of file Mesh.hpp.

◆ labelNeighbors() [2/2]

const IntIntSetMap& mgx::Mesh::labelNeighbors ( ) const
inline

Returns the map from labels to the set of neighbors labels.

Definition at line 477 of file Mesh.hpp.

◆ labelNormal()

IntPoint3fAttr& mgx::Mesh::labelNormal ( )
inline

Reference to the map from label to a normal.

This vector will be intepreted as the normal of the label, and used to draw the cell axis (e.g. principal directions of growth, MT orientation...).

Definition at line 250 of file Mesh.hpp.

◆ labelNormalVis()

IntPoint3fAttr& mgx::Mesh::labelNormalVis ( )
inline

Reference to the map from label to a normal.

This vector will be intepreted as the normal of the label, and used to draw the cell axis (e.g. principal directions of growth, MT orientation...).

Definition at line 274 of file Mesh.hpp.

◆ markBorder()

void mgx::Mesh::markBorder ( float  borderSize)

Mark all triangles closer than borderSize from a border as being a border triangle.

◆ mesh3D()

bool mgx::Mesh::mesh3D ( )
inline

Convenience function to tell if a 3D mesh (from viewpoint of rendering)

Definition at line 224 of file Mesh.hpp.

◆ meshType()

const QString& mgx::Mesh::meshType ( )
inline

Returns the mesh type.

Definition at line 208 of file Mesh.hpp.

◆ meshView()

QString mgx::Mesh::meshView ( ) const
inline

Return the current view mode for the mesh.

Definition at line 738 of file Mesh.hpp.

◆ nextLabel()

int mgx::Mesh::nextLabel ( )
inline

Increment the current label and return.

Definition at line 177 of file Mesh.hpp.

◆ nhbdC()

CellTissue::DistNhbdC& mgx::Mesh::nhbdC ( )
inline

Get the neighborhood object for the cell graph.

Definition at line 405 of file Mesh.hpp.

◆ nhbdS()

CellTissue::DistNhbdS& mgx::Mesh::nhbdS ( )
inline

Get the neighborhood object for the S graph.

Definition at line 400 of file Mesh.hpp.

◆ opacity()

float mgx::Mesh::opacity ( ) const
inline

Get the current opacity level of the surface.

Definition at line 554 of file Mesh.hpp.

◆ parentCenter()

IntPoint3fAttr& mgx::Mesh::parentCenter ( )
inline

Reference to the map from parent label to a position.

This position will be interpreted as the center of the parent label, and used to draw the parent label number on the mesh or growth directions on cellular mesh.

Definition at line 286 of file Mesh.hpp.

◆ parentCenterVis()

IntPoint3fAttr& mgx::Mesh::parentCenterVis ( )
inline

Reference to the map from parent label to a position.

This position will be intepreted as the center of the parent label, and used to draw growth directions on a non-cellular mesh.

Definition at line 310 of file Mesh.hpp.

◆ parentNormal()

IntPoint3fAttr& mgx::Mesh::parentNormal ( )
inline

Reference to the map from parent label to a normal.

This vector will be intepreted as the normal of the parent label, and used to draw the cell axis (e.g. principal directions of growth, MT orientation...).

Definition at line 298 of file Mesh.hpp.

◆ parentNormalVis()

IntPoint3fAttr& mgx::Mesh::parentNormalVis ( )
inline

Reference to the map from parent label to a normal.

This vector will be intepreted as the normal of the parent label, and used to draw the cell axis (e.g. principal directions of growth, MT orientation...).

Definition at line 322 of file Mesh.hpp.

◆ parents()

IntIntAttr& mgx::Mesh::parents ( )
inline

Reference to the map from each label to its parent.

Definition at line 200 of file Mesh.hpp.

◆ read()

bool mgx::Mesh::read ( QIODevice &  file,
bool  transform 
)

Read in a mesh.

◆ readCellMesh()

bool mgx::Mesh::readCellMesh ( QIODevice &  file,
bool  transform 
)

Read in a cellular mesh.

◆ readNhbds()

bool mgx::Mesh::readNhbds ( QIODevice &  file,
vvGraph S 
)

Read in neighborhoods.

◆ readVertexList()

bool mgx::Mesh::readVertexList ( QIODevice &  file,
vvGraph S 
)

Read in vertex list.

◆ readVertices()

bool mgx::Mesh::readVertices ( QIODevice &  file,
VtxVec V,
bool  transform 
)

Read in vertices.

◆ reset()

void mgx::Mesh::reset ( )

Reset the whole mesh and its attributes.

In the end, the mesh is empty, so doesn't contain cells, texture and is neither scaled nor transformed. All of the attributes are deleted.

The next label stays untouched, as it is important to keep coordination between different meshes/stacks.

◆ scaled()

bool mgx::Mesh::scaled ( ) const
inline

Returns true if the mesh is scaled.

Definition at line 137 of file Mesh.hpp.

◆ selectedCount()

int mgx::Mesh::selectedCount ( ) const

Returns the count of selected vertices (from S).

◆ selectedVertices()

std::vector<vertex> mgx::Mesh::selectedVertices ( ) const

Returns a vector with the list of selected vertices.

◆ setAxisColor()

bool mgx::Mesh::setAxisColor ( const Colorb pos,
const Colorb neg,
const SymmetricTensor s,
Vec3Colorb color 
)

Set an axis color based on sign.

◆ setAxisOffset()

float mgx::Mesh::setAxisOffset ( float  offset)
inline

Definition at line 1070 of file Mesh.hpp.

◆ setAxisView()

void mgx::Mesh::setAxisView ( const QString &  s,
bool  setShow = true 
)
inline

Set the axis display and view.

Definition at line 773 of file Mesh.hpp.

◆ setAxisWidth()

float mgx::Mesh::setAxisWidth ( float  width)
inline

Definition at line 1051 of file Mesh.hpp.

◆ setBlending()

void mgx::Mesh::setBlending ( bool  b)
inline

Set the blending attribute.

Definition at line 647 of file Mesh.hpp.

◆ setBoundingBox()

void mgx::Mesh::setBoundingBox ( const BoundingBox3f bbox)
inline

Set the mesh bounding box.

Definition at line 1292 of file Mesh.hpp.

◆ setBrightness()

void mgx::Mesh::setBrightness ( float  f)
inline

Change the current brightness of the surface.

Definition at line 576 of file Mesh.hpp.

◆ setCellAxisColor()

bool mgx::Mesh::setCellAxisColor ( const Colorb pos,
const Colorb neg 
)

Set the cell axis color based on the sign for each eigenvalue.

◆ setCellAxisType()

QString mgx::Mesh::setCellAxisType ( const QString &  s)
inline

Set the type of the current cell axis.

If an empty string, there is no cell axis.

Definition at line 1128 of file Mesh.hpp.

◆ setCellAxisUnit()

QString mgx::Mesh::setCellAxisUnit ( const QString &  s)
inline

Unit for the length of the cell axis.

Definition at line 1145 of file Mesh.hpp.

◆ setCulling()

void mgx::Mesh::setCulling ( bool  cul)
inline

Cull the back surface.

Definition at line 637 of file Mesh.hpp.

◆ setFile()

void mgx::Mesh::setFile ( const QString &  file = QString())

Set the name of the mesh file.

This is called when the mesh is loaded or saved. Processes that create a new mesh should call this without a parameter to reset the filename to null.

◆ setHeatFct()

void mgx::Mesh::setHeatFct ( const TransferFunction f)
inline

Change the transfer function used to draw the surface in heat mode.

Definition at line 538 of file Mesh.hpp.

◆ setId()

void mgx::Mesh::setId ( int  i)
inline

Change the id of the mesh.

Please do not use this method for meshes attached to a process.

Definition at line 107 of file Mesh.hpp.

◆ setImgTex()

void mgx::Mesh::setImgTex ( const QImage &  img)
inline

Set the texture attached to the surface.

Definition at line 710 of file Mesh.hpp.

◆ setLabel()

void mgx::Mesh::setLabel ( int  l)
inline

Sets the current label.

Definition at line 172 of file Mesh.hpp.

◆ setMeshType()

const QString& mgx::Mesh::setMeshType ( const QString &  mType)
inline

Set the mesh type.

Definition at line 216 of file Mesh.hpp.

◆ setMeshView()

void mgx::Mesh::setMeshView ( const QString &  s,
bool  setShow = true 
)
inline

Set the mesh display and view.

Definition at line 748 of file Mesh.hpp.

◆ setOpacity()

void mgx::Mesh::setOpacity ( float  f)
inline

Change the current opactity level of the surface.

Definition at line 559 of file Mesh.hpp.

◆ setScaled()

void mgx::Mesh::setScaled ( bool  on = true)
inline

Set if the mesh is scaled.

Definition at line 142 of file Mesh.hpp.

◆ setShowAxis()

void mgx::Mesh::setShowAxis ( bool  show = true)
inline

Set the axis display.

Definition at line 768 of file Mesh.hpp.

◆ setShowBBox()

void mgx::Mesh::setShowBBox ( bool  on = true)
inline

Set if the bounding box is shown.

Definition at line 162 of file Mesh.hpp.

◆ setShowLabel()

void mgx::Mesh::setShowLabel ( const QString &  s = "",
bool  setView = true 
)
inline

Set the surface label display.

Definition at line 621 of file Mesh.hpp.

◆ setShowMesh()

void mgx::Mesh::setShowMesh ( bool  show = true)
inline

Set the mesh visibility.

Definition at line 743 of file Mesh.hpp.

◆ setShowMeshCellMap()

void mgx::Mesh::setShowMeshCellMap ( bool  show)
inline

Set if the cell numbers are visible.

Definition at line 808 of file Mesh.hpp.

◆ setShowMeshLines()

void mgx::Mesh::setShowMeshLines ( bool  show)
inline

Set if the mesh lines are visible.

Definition at line 798 of file Mesh.hpp.

◆ setShowMeshPoints()

void mgx::Mesh::setShowMeshPoints ( bool  show)
inline

Set if the mesh points are visible.

Definition at line 803 of file Mesh.hpp.

◆ setShowSurface()

void mgx::Mesh::setShowSurface ( bool  val = true)
inline

Show the surface to the user.

Definition at line 594 of file Mesh.hpp.

◆ setShowTriangle()

void mgx::Mesh::setShowTriangle ( const QString &  s = "",
bool  setView = true 
)
inline

Set the surface triangle display.

Definition at line 610 of file Mesh.hpp.

◆ setShowVertex()

void mgx::Mesh::setShowVertex ( const QString &  s = "",
bool  setView = true 
)
inline

Set the surface vertex display.

Definition at line 599 of file Mesh.hpp.

◆ setSurfFct()

void mgx::Mesh::setSurfFct ( const TransferFunction f)
inline

Change the transfer function used to draw the surface in normal mode.

Definition at line 517 of file Mesh.hpp.

◆ setSurfView()

void mgx::Mesh::setSurfView ( SurfView  view)
inline

Change the view mode.

Definition at line 657 of file Mesh.hpp.

◆ setTransformed()

void mgx::Mesh::setTransformed ( bool  on = true)
inline

Set if the mesh is transformed.

Definition at line 152 of file Mesh.hpp.

◆ setTriangleAxisColor()

bool mgx::Mesh::setTriangleAxisColor ( const Colorb pos,
const Colorb neg 
)

Set the cell axis color based on the sign for each eigenvalue.

◆ setUseParents()

void mgx::Mesh::setUseParents ( bool  val)
inline

Show the color of the surface.

Definition at line 691 of file Mesh.hpp.

◆ setVertexAxisColor()

bool mgx::Mesh::setVertexAxisColor ( const Colorb pos,
const Colorb neg 
)

Set the cell axis color based on the sign for each eigenvalue.

◆ showAxis()

bool mgx::Mesh::showAxis ( ) const
inline

Is the axis currently visible to the user.

Definition at line 758 of file Mesh.hpp.

◆ showBBox()

bool mgx::Mesh::showBBox ( ) const
inline

Returns true if the bounding box is shown.

Definition at line 157 of file Mesh.hpp.

◆ showHeat()

bool mgx::Mesh::showHeat ( ) const
inline

Definition at line 679 of file Mesh.hpp.

◆ showLabels()

bool mgx::Mesh::showLabels ( ) const
inline

Definition at line 678 of file Mesh.hpp.

◆ showMesh()

bool mgx::Mesh::showMesh ( ) const
inline

Is the mesh currently visible to the user.

Definition at line 733 of file Mesh.hpp.

◆ showMeshCellMap()

bool mgx::Mesh::showMeshCellMap ( ) const
inline

Are cell numbers visible.

Definition at line 793 of file Mesh.hpp.

◆ showMeshLines()

bool mgx::Mesh::showMeshLines ( ) const
inline

Are mesh lines visible.

Definition at line 783 of file Mesh.hpp.

◆ showMeshPoints()

bool mgx::Mesh::showMeshPoints ( ) const
inline

Are mesh points visible.

Definition at line 788 of file Mesh.hpp.

◆ showSignal()

bool mgx::Mesh::showSignal ( ) const
inline

Convenience functions.

Definition at line 677 of file Mesh.hpp.

◆ showSurface()

bool mgx::Mesh::showSurface ( ) const
inline

True if the surface is currently visible to the user.

Definition at line 589 of file Mesh.hpp.

◆ showTriangleValue()

bool mgx::Mesh::showTriangleValue ( ) const
inline

Definition at line 681 of file Mesh.hpp.

◆ showVVCorrespondence()

bool& mgx::Mesh::showVVCorrespondence ( )
inline

Definition at line 1243 of file Mesh.hpp.

◆ showWallHeat()

bool mgx::Mesh::showWallHeat ( ) const
inline

Definition at line 680 of file Mesh.hpp.

◆ signalBounds()

Point2f& mgx::Mesh::signalBounds ( )
inline

Reference to the upper and lower bounds for the signal.

This defines the range for the color bar.

Definition at line 1272 of file Mesh.hpp.

◆ signalUnit()

QString& mgx::Mesh::signalUnit ( )
inline

Reference to the unit used for the signal.

It is shown on the color bar.

Definition at line 1262 of file Mesh.hpp.

◆ stack()

const Stack* mgx::Mesh::stack ( ) const
inline

Returns the stack associated to this mesh.

Definition at line 119 of file Mesh.hpp.

◆ surfFct()

TransferFunction mgx::Mesh::surfFct ( ) const
inline

Return the transfer function used to draw the surface in normal mode.

Definition at line 512 of file Mesh.hpp.

◆ surfFctChanged()

bool mgx::Mesh::surfFctChanged ( ) const
inline

Returns true if the normal transfer function has been changed during the current process.

Definition at line 528 of file Mesh.hpp.

◆ surfLabelView()

QString mgx::Mesh::surfLabelView ( ) const
inline

Returns the label visualization.

Definition at line 672 of file Mesh.hpp.

◆ surfTriangleView()

QString mgx::Mesh::surfTriangleView ( ) const
inline

Returns the triangle visualization.

Definition at line 667 of file Mesh.hpp.

◆ surfVertexView()

QString mgx::Mesh::surfVertexView ( ) const
inline

Returns the vertex visualization.

Definition at line 662 of file Mesh.hpp.

◆ surfView()

SurfView mgx::Mesh::surfView ( ) const
inline

Returns the current visualization for the surface.

Definition at line 652 of file Mesh.hpp.

◆ texCoord2d()

VtxPoint2fAttr& mgx::Mesh::texCoord2d ( )
inline

Reference to a map of 2D texture coordinates, this is used to load 3D images like that from the Keyance.

Definition at line 332 of file Mesh.hpp.

◆ tissue() [1/2]

CellTissue& mgx::Mesh::tissue ( )
inline

Get the Cell Tissue.

Definition at line 380 of file Mesh.hpp.

◆ tissue() [2/2]

const CellTissue& mgx::Mesh::tissue ( ) const
inline

Get the Cell Tissue.

Definition at line 375 of file Mesh.hpp.

◆ transformed()

bool mgx::Mesh::transformed ( ) const
inline

Returns true if the mesh is transformed.

Definition at line 147 of file Mesh.hpp.

◆ triangleAxis()

TriSymTensorAttr& mgx::Mesh::triangleAxis ( )
inline

Tensor quantity for each triangle.

The tensors are encoded as three vectors: ev1, ev2, evals. Where ev1 and ev2 are the two first eigenvectors and evals is the vector with the three eigenvalues.

This map does not get drawn, but rather one populates triangleAxisVis with the correct scaling from this map.

Definition at line 1167 of file Mesh.hpp.

◆ triangleAxisColor()

TriVec3ColorbAttr& mgx::Mesh::triangleAxisColor ( )
inline

Returns the map from label to cells axis colors (array of 3 Point3f)

Definition at line 1183 of file Mesh.hpp.

◆ triangleAxisVis()

TriMatrix3fAttr& mgx::Mesh::triangleAxisVis ( )
inline

Cell axis for visualization.

Definition at line 1175 of file Mesh.hpp.

◆ triangleColor()

TriVec3ColorbAttr& mgx::Mesh::triangleColor ( )
inline

Triangle colors.

Definition at line 963 of file Mesh.hpp.

◆ triangleIndex()

TriIntAttr& mgx::Mesh::triangleIndex ( )
inline

Triangle index for indexed color map mode.

Definition at line 971 of file Mesh.hpp.

◆ triangleIndexColors()

ColorbVec& mgx::Mesh::triangleIndexColors ( )
inline

Return the colormap for the triangle values.

Definition at line 1015 of file Mesh.hpp.

◆ triangleValue()

TriFloatAttr& mgx::Mesh::triangleValue ( )
inline

Triangle value for interpolated color map mode.

Definition at line 979 of file Mesh.hpp.

◆ triangleValueBounds()

Point2f& mgx::Mesh::triangleValueBounds ( )
inline

Return the upper and lower bounds for the triangle value.

Definition at line 995 of file Mesh.hpp.

◆ triangleValueColors()

ColorbVec& mgx::Mesh::triangleValueColors ( )
inline

Return the colormap for the triangle values.

Definition at line 987 of file Mesh.hpp.

◆ triangleValueUnit()

QString& mgx::Mesh::triangleValueUnit ( )
inline

Reference to the unit used for triangle values.

It is shown on the color bar.

Definition at line 1007 of file Mesh.hpp.

◆ updateAll()

void mgx::Mesh::updateAll ( )

To be called when the mesh structure changed.

◆ updateBBox()

void mgx::Mesh::updateBBox ( )

Update the bounding box from the mesh.

◆ updateCentersNormals()

void mgx::Mesh::updateCentersNormals ( )

Search for the vertex closest to position of cell center fills in labelCenter, labelNormal, labelCenterVis, labelNormalVis.

◆ updateLines()

void mgx::Mesh::updateLines ( )

To be called if properties of the lines changed.

◆ updatePositions()

void mgx::Mesh::updatePositions ( )

To be called if the position of the points changed.

◆ updateSelection()

void mgx::Mesh::updateSelection ( )

To be called if the selection of the points changed.

◆ updateTriangles()

void mgx::Mesh::updateTriangles ( )

To be called if properties of the triangles changed.

◆ updateWallGeometry()

void mgx::Mesh::updateWallGeometry ( float  borderSize)

Update labelNeighbors, wallVId and wallGeom to reflect current data structure.

Parameters
borderSizeDistance from the wall up to which the triangles are considered part of the wall. This is important mostly for signal intensity.

◆ useParents()

bool mgx::Mesh::useParents ( )
inline

Returns if we should use parents or labels.

Definition at line 686 of file Mesh.hpp.

◆ userId()

int mgx::Mesh::userId ( ) const
inline

Id as seen by the user.

This is, typically id()+1

Definition at line 114 of file Mesh.hpp.

◆ vertexAxis()

VtxSymTensorAttr& mgx::Mesh::vertexAxis ( )
inline

Definition at line 1205 of file Mesh.hpp.

◆ vertexAxisColor()

VtxVec3ColorbAttr& mgx::Mesh::vertexAxisColor ( )
inline

Returns the map from label to cells axis colors (array of 3 Point3f)

Definition at line 1221 of file Mesh.hpp.

◆ vertexAxisVis()

VtxMatrix3fAttr& mgx::Mesh::vertexAxisVis ( )
inline

Cell axis for visualization.

Definition at line 1213 of file Mesh.hpp.

◆ viewLabel()

int mgx::Mesh::viewLabel ( ) const
inline

Returns the current label, without modifying it.

Definition at line 167 of file Mesh.hpp.

◆ vMap()

IntVtxMap& mgx::Mesh::vMap ( )
inline

Map vertex saveId to vertex.

Definition at line 1347 of file Mesh.hpp.

◆ vvCorrespondence()

IntMatrix3fMap& mgx::Mesh::vvCorrespondence ( )
inline

Returns a reference to the map of correspondence between vertices in mesh1 and mesh2 (store vertices positions)

Definition at line 1235 of file Mesh.hpp.

◆ wallGeom()

IntIntFloatAttr& mgx::Mesh::wallGeom ( )
inline

Reference to the map from each wall to the length of the wall.

The length is calculated as the sum of the edges making the wall. This means the number returned is will depend on the discretization of the surface.

Note
You shouldn't need to modify this structure directly. You should instead call Mesh::updateWallGeometry()

Definition at line 459 of file Mesh.hpp.

◆ wallHeat()

IntIntFloatAttr& mgx::Mesh::wallHeat ( )
inline

Reference to map of heat data by wall (i.e.

pair of vertex id) to intensity

Definition at line 937 of file Mesh.hpp.

◆ wallHeatBounds()

Point2f& mgx::Mesh::wallHeatBounds ( )
inline

Upper and lower bounds for the heat.

Definition at line 945 of file Mesh.hpp.

◆ wallHeatUnit()

QString& mgx::Mesh::wallHeatUnit ( )
inline

Wall heat unit.

Definition at line 953 of file Mesh.hpp.

◆ wallVId() [1/2]

IntIntVIdSetMap& mgx::Mesh::wallVId ( )
inline

Reference to the map from each wall to the list of vertexes in the wall.

A wall is identified as the interface between two labels, and as such, is given as a pair of labels. Note that there is a difference between the wall (i,j) and (j,i), as the first label is considered as the interior of the wall, and used as such when calculating the signal along a wall.

Note
You shouldn't need to modify this structure directly. You should instead call Mesh::updateWallGeometry()

RSS Should this then be private?

Definition at line 443 of file Mesh.hpp.

◆ wallVId() [2/2]

const IntIntVIdSetMap& mgx::Mesh::wallVId ( ) const
inline

Returns the map from each wall to the list of vertexes in the wall.

Definition at line 448 of file Mesh.hpp.

◆ write()

bool mgx::Mesh::write ( QIODevice &  file,
bool  transform 
)

Write out a mesh.

◆ writeCellMesh()

bool mgx::Mesh::writeCellMesh ( QIODevice &  file,
bool  transform 
)

Write out a cellular mesh.

◆ writeNhbds()

bool mgx::Mesh::writeNhbds ( QIODevice &  file,
const vvGraph S 
)

Write out neighborhoods.

◆ writeVertexList()

bool mgx::Mesh::writeVertexList ( QIODevice &  file,
const vvGraph S 
)

Write the vertex list.

◆ writeVertices()

bool mgx::Mesh::writeVertices ( QIODevice &  file,
const vvGraph S,
bool  transform 
)

Write out vertices.

Friends And Related Function Documentation

◆ SetupProcess

friend class SetupProcess
friend

Definition at line 56 of file Mesh.hpp.


The documentation for this class was generated from the following file: