SofaPython3
xp-readthedocs
Overview
  • Compilation
  • Using the plugin
  • Modules
    • Sofa
      • Sofa.Simulation
        • Sofa.Simulation.animate
        • Sofa.Simulation.animateNSteps
        • Sofa.Simulation.init
        • Sofa.Simulation.initTextures
        • Sofa.Simulation.initVisual
        • Sofa.Simulation.load
        • Sofa.Simulation.print
        • Sofa.Simulation.reset
        • Sofa.Simulation.unload
        • Sofa.Simulation.updateVisual
      • Sofa.Core
        • Sofa.Core.Base
        • Sofa.Core.BaseContext
        • Sofa.Core.BaseMeshTopology
        • Sofa.Core.BaseNode
        • Sofa.Core.BasePrefab
        • Sofa.Core.Camera
        • Sofa.Core.ClassEntry
        • Sofa.Core.ContactListener
        • Sofa.Core.Context
        • Sofa.Core.Controller
        • Sofa.Core.Data
        • Sofa.Core.DataContainer
        • Sofa.Core.DataContainerContextManager
        • Sofa.Core.DataDict
        • Sofa.Core.DataDictIterator
        • Sofa.Core.DataEngine
        • Sofa.Core.DataLink
        • Sofa.Core.DataString
        • Sofa.Core.DataVectorString
        • Sofa.Core.ForceFieldRigid2d
        • Sofa.Core.ForceFieldRigid3d
        • Sofa.Core.ForceFieldVec1d
        • Sofa.Core.ForceFieldVec2d
        • Sofa.Core.ForceFieldVec3d
        • Sofa.Core.ForceFieldVec6d
        • Sofa.Core.Link
        • Sofa.Core.LinkPath
        • Sofa.Core.MassRigid2d
        • Sofa.Core.MassRigid3d
        • Sofa.Core.MassVec1d
        • Sofa.Core.MassVec2d
        • Sofa.Core.MassVec3d
        • Sofa.Core.MassVec6d
        • Sofa.Core.Node
        • Sofa.Core.NodeIterator
        • Sofa.Core.Object
        • Sofa.Core.ObjectFactory
        • Sofa.Core.PointSetTopologyModifier
        • Sofa.Core.PrefabLink
        • Sofa.Core.RawPrefab
        • Sofa.Core.Topology
      • Sofa.Gui
        • Sofa.Gui.BaseGUI
        • Sofa.Gui.GUIManager
      • Sofa.Helper
        • Sofa.Helper.msg_deprecated
        • Sofa.Helper.msg_error
        • Sofa.Helper.msg_fatal
        • Sofa.Helper.msg_info
        • Sofa.Helper.msg_warning
        • Sofa.Helper.MessageHandler
        • Sofa.Helper.StdVectorBaseData
        • Sofa.Helper.StdVectordouble
        • Sofa.Helper.StdVectorfloat
        • Sofa.Helper.StdVectorint
        • Sofa.Helper.StdVectorlong
        • Sofa.Helper.StdVectoruint
        • Sofa.Helper.StdVectorulong
        • Sofa.Helper.VectorBaseData
        • Sofa.Helper.Vectordouble
        • Sofa.Helper.Vectorfloat
        • Sofa.Helper.Vectorint
        • Sofa.Helper.Vectorlong
        • Sofa.Helper.Vectoruint
        • Sofa.Helper.Vectorulong
      • Sofa.Types
        • Sofa.Types.BoundingBox
      • Sofa.SofaTypes
        • Sofa.SofaTypes.SofaTypes
      • Sofa.prefab
        • Sofa.prefab.Prefab
      • Sofa.constants
        • Sofa.constants.KeyCode
        • Sofa.constants.Key
      • Sofa.msg_error
      • Sofa.msg_info
      • Sofa.msg_warning
      • Sofa.msg_deprecated
      • Sofa.SofaBaseTopology
        • Sofa.SofaBaseTopology.RegularGridTopology
        • Sofa.SofaBaseTopology.SparseGridTopology
      • Sofa.SofaConstraintSolver
        • Sofa.SofaConstraintSolver.ConstraintSolverImpl
      • Sofa.SofaDeformable
        • Sofa.SofaDeformable.LinearSpring
        • Sofa.SofaDeformable.SpringForceField_Rigid3d
        • Sofa.SofaDeformable.SpringForceField_Vec1d
        • Sofa.SofaDeformable.SpringForceField_Vec2d
        • Sofa.SofaDeformable.SpringForceField_Vec3d
        • Sofa.SofaDeformable.SpringForceField_Vec6d
      • Sofa.SofaGL
        • Sofa.SofaGL.draw
        • Sofa.SofaGL.glewInit
    • SofaExporter
      • SofaExporter.STLExporter
      • SofaExporter.VisualModelOBJExporter
    • SofaRuntime
      • SofaRuntime.importPlugin
      • SofaRuntime.unloadModules
      • SofaRuntime.formatStackForSofa
      • SofaRuntime.getStackForSofa
      • SofaRuntime.getPythonCallingPointAsString
      • SofaRuntime.getPythonCallingPoint
      • SofaRuntime.sendMessageFromException
      • SofaRuntime.sofaFormatHandler
      • SofaRuntime.sofaExceptHandler
      • SofaRuntime.getSofaFormattedStringFromException
  • Third party modules
  • Writing custom binding
  • Contributing
SofaPython3
  • Modules
  • Sofa
  • Sofa.Core
  • Sofa.Core.DataLink
  • View page source

Sofa.Core.DataLink

class Sofa.Core.DataLink

Bases: Data

array(self: Sofa.Core.Data) → numpy.ndarray

Return a python read-only array of the data. :rtype: read-only array

getCounter(self: Sofa.Core.Data) → int

Return the number of changes since creation. This can be used to efficiently detect changes. :rtype: integer

getHelp(self: Sofa.Core.Data) → str

Get the help message. :rtype: string

getLinkPath(self: Sofa.Core.Data) → str

Return the path of the link to the data. :rtype: string

getName(self: Sofa.Core.Data) → str

Get the name of the data. :rtype: string

getOwner(self: Sofa.Core.Data) → object

Return the Base component owning this data. :rtype: Base

getParent(self: Sofa.Core.Data) → Sofa.Core.Data

Return the parent data of this data. :rtype: BaseData

getPathName(self: Sofa.Core.Data) → str

Return the name of the path of the data. :rtype: string

getValueString(self: Sofa.Core.Data) → str

Print the value of the associated variable.

getValueTypeString(self: Sofa.Core.Data) → str

Print the value of the associated variable.

getValueVoidPtr(self: Sofa.Core.Data) → capsule

Get a constant void pointer to the value held in this data.

hasChanged(self: Sofa.Core.Data) → bool

Update the data if it is dirty. :return: true if it is updated, false otherwise. ;rtype: boolean

hasParent(self: Sofa.Core.Data) → bool

Check whether the data has a parent. :return: true if the data has a parent. :rtype: boolean

isDirty(self: Sofa.Core.Data) → bool

Return true if the DDGNode needs to be updated.

isPersistent(self: Sofa.Core.Data) → bool

Alias to match BaseData API. Checks whether the link requires a path in order to be created. :return: true if the link requires a path. :rtype: boolean

isReadOnly(self: Sofa.Core.Data) → bool

Return whether this data will be read-only in GUIs. :return: True for read-only

isRequired(self: Sofa.Core.Data) → bool

Check whether a data is flagged as required for the creation of an object. :return: true if it is required.

isSet(self: Sofa.Core.Data) → bool

Check if the value has been modified If this data is linked, the value of this data will be considered as modified (even if the parent’s value has not been modified) :return: True if the data has been modified

read(self: Sofa.Core.Data, arg0: str) → bool

Read the command line, set the value of the data to the given content of the command line. :param str: the content of the command line :type str: string

setName(self: Sofa.Core.Data, arg0: str) → None

Set a new name for the data. :param name: the new name :type name: string

setParent(*args, **kwargs)

Overloaded function.

  1. setParent(self: Sofa.Core.Data, arg0: Sofa.Core.Data) -> None

    Set a new parent and a new path for the data. :param parent: the new parent of the data :param path: the new path of the data :type parent: BaseData :type path: string

  2. setParent(self: Sofa.Core.Data, arg0: str) -> None

    Set a new parent and a new path for the data. :param parent: the new parent of the data :param path: the new path of the data :type parent: BaseData :type path: string

  3. setParent(self: Sofa.Core.Data, arg0: sofapython3::LinkPath) -> None

    Set a new parent and a new path for the data. :param parent: the new parent of the data :param path: the new path of the data :type parent: BaseData :type path: string

setPersistent(self: Sofa.Core.Data, arg0: bool) → None

Alias to match BaseData API. Changes the value of a flag, that should be set to true if link requires a path string in order to be created. :param bool: new value for the flag. :type bool: boolean

setReadOnly(self: Sofa.Core.Data, arg0: bool) → None

Set whether this data is read-only. (True for read-only) :param bool: value of the read-only property :type bool: boolean

toList(self: Sofa.Core.Data) → list

Return a list containing the value of the vector of data.

typeName(self: Sofa.Core.Data) → str

Return the name of the type of the data. :rtype: string

unset(self: Sofa.Core.Data) → None

Reset the isSet flag to false, to indicate that the current value is the default for this data.

updateIfDirty(self: Sofa.Core.Data) → None

Utility method to call update if necessary. This method should be called before reading or writing the value of this node.

writeableArray(*args, **kwargs)

Overloaded function.

  1. writeableArray(self: Sofa.Core.Data, arg0: object) -> sofapython3::DataContainerContext

    Return a writable array of the data given an Object. :param f: the object to convert into an array. :type f: python object :rtype: writeable array

  2. writeableArray(self: Sofa.Core.Data) -> sofapython3::DataContainerContext

    Return a new empty array. :rtype: writeable array

Previous Next

© Copyright 2021, SOFA Framework.

Built with Sphinx using a theme provided by Read the Docs.