Public Types
Public Member Functions
Control OpenGL
RENDER
font
coloring
ruler
VIEW
SLICING
SELECTION
Miscellaneous
Detailed Description
A class for 3D visualization of a structure Additionally, it can display palettes and text annotations as well as rich text labels. Internally, a representation in terms of triangles only is used. Qt separation: This class contains no functionality relying on Qt classes. All methods using Qt classes are virtual and have no implementation, calling DYNARDO_LOG_WARN instead. Their implementation is done in SceneQt, part of the sos_qt_extensions module. Class Scene is NO QObject, but SceneQt is. Instances of Scene or SceneQt are created with application_makeScene(), implemented in the sos_qt_extensions or sos_noqt_extensions module respectively.Constructor & Destructor Documentation
Scene()
Member Function Documentation
ActivateNodeValues()
AddRotation() [1/2]
AddRotation() [2/2]
addVal2String()
AssignValues()
currentCoordinates()
currentNormals()
currentOutlineCoordinates()
currentTetCoordinates()
databaseImage()
virtual
Get the small mesh image to save with the database header, without Qt: returns empty image!
Parameters
exportIsosurface_STL()
exportTNG()
File() [1/2]
Returns
a QImage Renders the finite element model of a scene into a QImage of given size
a QImage
Renders the contents of the scene to an image file using current size of the scene Parameters
File() [2/2]
virtual
Renders the contents of the scene to an image file of given size.
Parameters
font()
virtual
Returns
a reference to
See also
m_font
GetBackground()
GetBackground2()
getContours()
getContourSize()
GetContourType()
getCoordinateAxes()
getElementDistance()
virtual
Returns the distance between the mapped mean value of the elements nodal coordinates and the midpoint of the selection rectangle given Maps the mean value of the elements nodal coordinates components given to window coordinates and returns the distance between this point and the midpoint of the window selection rectangle given.
Parameters
Returns
The distance between the mapped mean value of the elements nodal coordinates given and the midpoint of the selection rectangle given if the mapped point is inside or on the edge of the selection rectangle given. 1e33 otherwise.
getMaxValue()
getMinValue()
getNodeDistance() [1/2]
virtual
Returns the distance between the mapped nodal coordinates and the midpoint of the selection rectangle given. Maps the nodal coordinates given to window coordinates and returns the distance between this point and the midpoint of the window selection rectangle given.
Parameters
Returns
The distance between the mapped nodal coordinates and the midpoint of the rectangle given if the mapped point is inside or on the edge of the selection rectangle given. 1e33 otherwise.
getNodeDistance() [2/2]
virtual
Returns the distance between the mapped nodal coordinates and the midpoint of the selection rectangle given. Maps the nodal coordinates given to window coordinates and returns the distance between this point and the midpoint of the window selection rectangle given.
Parameters
Returns
The distance between the mapped nodal coordinates and the midpoint of the rectangle given if the mapped point is inside or on the edge of the selection rectangle given. 1e33 otherwise.
getNumPoints()
GetPan()
getPointColors()
getPointSize()
GetRichLabel()
virtual
GetRichLabel.
Returns
the current rich label (legend) from the scene
GetRotation()
getSelectedElementIndices()
virtual
Returns
the indices in index mapper of selected elements as column vector
Parameters
getSelectedNodeIndices()
virtual
Returns
the indices in index mapper of selected nodes as column vector
Parameters
getSlice()

getSphereNormals()
getSphereVertices()
getValues()
getVisibleCoordinates()
getVisibleTetCoordinates()
GetZoom()
haveCurrentCoordinates()
importTNG()
virtual
from Matrix as used in slangTNG
Parameters
isSelected() [1/2]
virtual
isSelected
Parameters
Returns
bool indicating if chosen element is selected
isSelected() [2/2]
virtual
isSelected
Parameters
Returns
bool indicating if chosen node is selected
isSliced()
isVertexSelected()
virtual
determine if a given vertex is currently selected
Parameters
Returns
boolean idicating if selected
mappedVector()
Returns
Mapped vector
palette()
virtual
Get current palette.
Returns
palette object containing the definition of the palette.
palettePercentageRange()
virtual
Returns
Returns true if the palette has set relative values. Otherwise false
Prepare()
virtual
Clears all OpenGL Vertex Buffers first and re-initializes them afterwards.
Parameters
printSelectionInfo()
virtual
prints some limited information on the current selection
Parameters
removeSlice()
select() [1/2]
virtual
Tests if the given element is in FEM set and if so marks it with value given as selected.
Parameters
Returns
Returns the number of new selected elements, which is at most 1, ignoring the original selection state
select() [2/2]
virtual
Tests if the given node is in an active FEM set and if so marks it with value given as selected.
Parameters
Returns
Returns the number of new selected nodes, which is at most 1, ignoring the original selection state
selectEntitiesInRect()
virtual
Calls the select method for all visible mapped vertices/nodes and triangles/elements in a selection rectangle on the screen The called select method ensures that only items within an active FEM set will be selectable. See select for further information.
Parameters
SetBackground()
SetBackground2()
SetCoorAxesPosition()
virtual
Sets the position for the coordinate axes.
Parameters
setCoordinateAxes()
setCoordinateAxesLabels()
SetCoordinates()
SetCoorSystemPosition()
virtual
Sets the position for the coordinate system.
Parameters
SetFont() [1/2]
virtual
Sets the font for all text to be shown in the scene.
Parameters
SetFont() [2/2]
virtual
Sets the font for all text to be shown in the scene.
Parameters
SetGeometricScaling()
SetGeometricStabilization()
SetLegendPosition()
virtual
Sets the position for the legend.
Parameters
SetMarkPosition()
setPalettePercentageRange()
virtual
Sets a relative, percentage palette range.
Parameters
setPalettePosition()
virtual
Sets the position for the current palette.
Parameters
setPaletteType()
virtual
Assign a color/value palette to the scene. Only one palette can be assigned.
Parameters
SetPan()
setPerspective()
setPointSize()
SetRotation()
setRuler()
SetScale()
SetSlice() [1/2]
This is just a convenience method computing the coefficients for the euclidean plane equation and calling the overloaded version afterwards.
Refer to Wolfram: Plane for an explanation of the plane definition
Refer to Wolfram: Plane for an explanation of the plane definition
SetSlice() [2/2]
Refer to Wolfram: Plane for an explanation of the plane definition
SetTetCoordinates()
SetUnconnectedPointCoordinates()
SetValues()
virtual
Assign values to the vertices of the structure which are then used for coloring.
Parameters