VisualModelImpl
Context: Sofa.Component.Visual
Generic visual model. If a viewer is active it will replace the VisualModel alias, otherwise nothing will be displayed.
- Data:
name : object name
printLog : if true, emits extra messages at runtime.
tags : list of the subsets the objet belongs to
bbox : this object bounding box
componentState : The state of the component among (Dirty, Valid, Undefined, Loading, Invalid).
listening : if true, handle the events, otherwise ignore the events
enable : Display the object or not
position : Vertices coordinates
restPosition : Vertices rest coordinates
normal : Normals of the model
initRestPositions : True if rest positions must be initialized with initial positions
useNormals : True if normal smoothing groups should be read from file
updateNormals : True if normals should be updated at each iteration
computeTangents : True if tangents should be computed at startup
updateTangents : True if tangents should be updated at each iteration
handleDynamicTopology : True if topological changes should be handled
fixMergedUVSeams : True if UV seams should be handled even when duplicate UVs are merged
keepLines : keep and draw lines (false by default)
vertices : vertices of the model (only if vertices have multiple normals/texcoords, otherwise positions are used)
texcoords : coordinates of the texture
tangents : tangents for normal mapping
bitangents : tangents for normal mapping
edges : edges of the model
triangles : triangles of the model
quads : quads of the model
vertPosIdx : If vertices have multiple normals/texcoords stores vertices position indices
vertNormIdx : If vertices have multiple normals/texcoords stores vertices normal indices
filename : Path to an ogl model
texturename : Name of the Texture
translation : Initial Translation of the object
rotation : Initial Rotation of the object
scale3d : Initial Scale of the object
scaleTex : Scale of the texture
translationTex : Translation of the texture
material : Material
putOnlyTexCoords : Give Texture Coordinates without the texture binding
srgbTexturing : When sRGB rendering is enabled, is the texture in sRGB colorspace?
materials : List of materials
groups : Groups of triangles and quads using a given material
- Links:
context : Graph Node containing this object (or BaseContext::getDefault() if no graph is used
slaves : Sub-objects used internally by this object
master : nullptr for regular objects, or master object for which this object is one sub-objects
topology : link to the topology container