InlineTransformBase (object)¶
バージョン 1.12.0 で追加.
/*
** Example: InlineTransformBase
*/
require InlineDrawing;
operator entry() {
// create a couple of transforms parented into a hierarchy
InlineTransform transfo1 = InlineTransformBase('parent', Xfo());
InlineTransform transfo2 = InlineTransformBase('childA', transfo1, Xfo(Vec3(-5, 0, 0)));
InlineTransform transfo3 = InlineTransformBase('childB', transfo2, Xfo(Vec3(5, 0, 0)));
// add some more transform values
transfo3.pushLocalXfo(Xfo(Vec3(5, 5, 0)));
transfo3.pushLocalXfo(Xfo(Vec3(5, 10, 0)));
}
/*
** Output:
*/
Methods¶
InlineTransformBase ( in InlineTransformBase other ) | |
InlineTransformBase ( in String name ) | |
InlineTransformBase ( in String name, in Xfo xfo ) | |
InlineTransformBase ( in String name, io InlineTransform parent, in Xfo xfo ) | |
InlineTransformBase () | |
Object | addChild ! ( in Object child ) |
InlineTransformBase | clone ? () |
Object | getChild ? ( in Index index ) |
Object | getChild ? ( in String name ) |
Object | getChildByPath ? ( in String path[] ) |
Size | getChildCount ? () |
Size | getGlobalCount ? () |
Xfo | getGlobalXfo ! ( in Index index ) |
Size | getLocalCount ? () |
Xfo | getLocalXfo ? ( in Index index ) |
InlineTransform | getParent ? () |
String | getPath ? () |
Boolean | hasParent ? () |
incrementVersion ! () | |
pushLocalXfo ! ( in Xfo xfo ) | |
removeAllChildren ! () | |
removeChild ! ( in Index index ) | |
removeChild ! ( in Object child ) | |
setGlobalXfo ! ( in Index index, in Xfo xfo ) | |
setLocalCount ! ( in Size n ) | |
setLocalXfo ! ( in Index index, in Xfo xfo ) | |
setParent ! ( io InlineTransform parent ) | |
~InlineTransformBase () |
Methods in detail¶
InlineTransformBase ( in InlineTransformBase other )
copy constructor
InlineTransformBase ( in String name )
default constructor just taking a name
InlineTransformBase ( in String name, in Xfo xfo )
default constructor given name and the first xfo value
InlineTransformBase ( in String name, io InlineTransform parent, in Xfo xfo )
default constructor taking a parent transform, a name and the first xfo value
default constructor just taking a name
Object InlineTransformBase.addChild! ( in Object child )
adds a child to this transform
InlineTransformBase InlineTransformBase.clone? ()
clone method
Object InlineTransformBase.getChild? ( in Index index )
returns a child of this transform given an index
Object InlineTransformBase.getChild? ( in String name )
returns a child of this transform given a name, or null
Object InlineTransformBase.getChildByPath? ( in String path[] )
searches the tree for a child given a path of names.
Size InlineTransformBase.getChildCount? ()
returns the number of children of this transform
Size InlineTransformBase.getGlobalCount? ()
returns the number of global xfo values
Xfo InlineTransformBase.getGlobalXfo! ( in Index index )
returns a global xfo value given an index and context
Size InlineTransformBase.getLocalCount? ()
returns the number of local xfo values
Xfo InlineTransformBase.getLocalXfo? ( in Index index )
returns a local xfo value given an index and context
InlineTransform InlineTransformBase.getParent? ()
returns the parent of this transform, or null
String InlineTransformBase.getPath? ()
returns the path, encoding the hierarchy joined by ‘/’
Boolean InlineTransformBase.hasParent? ()
returns true if this transform has a parent
InlineTransformBase.incrementVersion! ()
empties the internal caches of this transform
InlineTransformBase.pushLocalXfo! ( in Xfo xfo )
adds an additional local transform
InlineTransformBase.removeAllChildren! ()
removes all children from this transform
InlineTransformBase.removeChild! ( in Index index )
removes a child object to this transform by index
InlineTransformBase.removeChild! ( in Object child )
removes a child to this transform
InlineTransformBase.setGlobalXfo! ( in Index index, in Xfo xfo )
set the global transform value. The Transform is responsible for computing local.
InlineTransformBase.setLocalCount! ( in Size n )
resizes the transform to store n local transform values
InlineTransformBase.setLocalXfo! ( in Index index, in Xfo xfo )
sets a local xfo value given an index
InlineTransformBase.setParent! ( io InlineTransform parent )
sets the parent of this transform
~ InlineTransformBase ()