ManipHandle (object)¶
バージョン 1.12.0 で追加.
The ManipHandle provides a scope for manipulation. The handle can be used to register manipulators to the EventDispatcher. Upon destruction the handle will clean up and un-register the manipulators again. Additionally the ManipHandle also provides access to a contained DrawingHandle, which Manipulators can use to perform custom drawing.
Members¶
String | name | the name of this handle |
DrawingHandle | drawHandle | the drawing handle used |
EventDispatcher | dispatcher | the handle’s dispatcher |
Manipulator[String] | manipulators | The dict of registered manipulators. |
BaseGizmoHandler[String] | gizmoHandlers | the gizmo handler used by the gizmo manip |
InlineInstance[String] | gizmoInstances | the gizmo instances |
InlineInstance[String] | weightmapInstances | the weightmap instances |
Methods¶
ManipHandle ( in ManipHandle other ) | |
ManipHandle ( in String name ) | |
ManipHandle () | |
addOffsetTransform ! ( in String name, in PolygonMesh mesh, in Xfo xfo, in Color color, in Scalar size, in InlineInstance parentInstance, out InlineInstance instance ) | |
addOrientationAxisManip ! ( in String name, in PolygonMesh mesh, in Xfo xfo, in Color color, in Scalar size, in Vec3 axis, in InlineInstance parentInstance, in String portToDrive, in String hostGraphName, out InlineInstance instance ) | |
addOrientationSphericalManip ! ( in String name, in PolygonMesh mesh, in Xfo xfo, in Color color, in Scalar size, in Float32 tolerance, in InlineInstance parentInstance, in String portToDrive, in String hostGraphName, out InlineInstance instance ) | |
addPositionAxisManip ! ( in String name, in PolygonMesh mesh, in Vec3 pos, in Color color, in Scalar size, in Vec3 axis, in InlineInstance parentInstance, in String portToDrive, in String hostGraphName, out InlineInstance instance ) | |
addPositionManip ! ( in String name, in PolygonMesh mesh, in Vec3 pos, in Color color, in Scalar size, in InlineInstance parentInstance, in String portToDrive, in String hostGraphName, out InlineInstance instance ) | |
addPositionPlanarManip ! ( in String name, in PolygonMesh mesh, in Vec3 pos, in Color color, in Scalar size, in Vec3 normal, in InlineInstance parentInstance, in String portToDrive, in String hostGraphName, out InlineInstance instance ) | |
addPositionSliderManip ! ( in String name, in PolygonMesh mesh, in Vec3 pos, in Color color, in Scalar size, in Vec3 axis, in Vec2 limits, in InlineInstance parentInstance, in String portToDrive, in String hostGraphName, out InlineInstance instance ) | |
addSurfacePaintManip ! ( in String name, io InlineInstance instance, io Weightmap weightmap, in Xfo xfo, in Color color ) | |
addSurfaceSculptManip ! ( in String name, io InlineInstance instance ) | |
clear ! () | |
ManipHandle | clone ? () |
DrawingHandle | getDrawingHandle ? () |
registerManipulator ! ( in String name, in Manipulator manip ) | |
~ManipHandle () |
Methods in detail¶
ManipHandle ( in ManipHandle other )
copy constructor
ManipHandle ( in String name )
constructor taking a name
ManipHandle ()
default constructor
ManipHandle.addOffsetTransform! ( in String name, in PolygonMesh mesh, in Xfo xfo, in Color color, in Scalar size, in InlineInstance parentInstance, out InlineInstance instance )
Registers a single intermediate parent for offsetting other gizmos
ManipHandle.addOrientationAxisManip! ( in String name, in PolygonMesh mesh, in Xfo xfo, in Color color, in Scalar size, in Vec3 axis, in InlineInstance parentInstance, in String portToDrive, in String hostGraphName, out InlineInstance instance )
Registers a single position manipulator if it doesn’t exist yet
ManipHandle.addOrientationSphericalManip! ( in String name, in PolygonMesh mesh, in Xfo xfo, in Color color, in Scalar size, in Float32 tolerance, in InlineInstance parentInstance, in String portToDrive, in String hostGraphName, out InlineInstance instance )
Registers a single position manipulator if it doesn’t exist yet
ManipHandle.addPositionAxisManip! ( in String name, in PolygonMesh mesh, in Vec3 pos, in Color color, in Scalar size, in Vec3 axis, in InlineInstance parentInstance, in String portToDrive, in String hostGraphName, out InlineInstance instance )
Registers a single position manipulator if it doesn’t exist yet
ManipHandle.addPositionManip! ( in String name, in PolygonMesh mesh, in Vec3 pos, in Color color, in Scalar size, in InlineInstance parentInstance, in String portToDrive, in String hostGraphName, out InlineInstance instance )
Registers a single position manipulator if it doesn’t exist yet
ManipHandle.addPositionPlanarManip! ( in String name, in PolygonMesh mesh, in Vec3 pos, in Color color, in Scalar size, in Vec3 normal, in InlineInstance parentInstance, in String portToDrive, in String hostGraphName, out InlineInstance instance )
Registers a single position manipulator if it doesn’t exist yet
ManipHandle.addPositionSliderManip! ( in String name, in PolygonMesh mesh, in Vec3 pos, in Color color, in Scalar size, in Vec3 axis, in Vec2 limits, in InlineInstance parentInstance, in String portToDrive, in String hostGraphName, out InlineInstance instance )
Registers a single position manipulator if it doesn’t exist yet
ManipHandle.addSurfacePaintManip! ( in String name, io InlineInstance instance, io Weightmap weightmap, in Xfo xfo, in Color color )
Registers a surface paint manipulator
ManipHandle.addSurfaceSculptManip! ( in String name, io InlineInstance instance )
Registers a surface sculpt manipulator
ManipHandle.clear! ()
clears the content of the ManipHandle
ManipHandle ManipHandle.clone? ()
clone method
DrawingHandle ManipHandle.getDrawingHandle? ()
returns the DrawingHandle of this ManipHandle
ManipHandle.registerManipulator! ( in String name, in Manipulator manip )
Registers a manipulator
~ ManipHandle ()
deconstructor