gear_mc
 All Classes Namespaces Functions Variables
Functions
gear.xsi.icon Namespace Reference

Functions

def primOrIcon
 DRAW METHODS. More...
 
def cube
 Create a curve with a CUBE shape. More...
 
def pyramid
 Create a curve with a PYRAMIDE shape. More...
 
def square
 Create a curve with a SQUARE shape. More...
 
def boomerang
 Create a curve with a BOOMERANG shape. More...
 
def pointer
 Create a curve with a POINTER shape. More...
 
def flower
 Create a curve with a FLOWER shape. More...
 
def circle
 Create a curve with a CIRCLE shape. More...
 
def cylinder
 Create a curve with a CYLINDER shape. More...
 
def compas
 Create a curve with a COMPAS shape. More...
 
def foil
 Create a curve with a FOIL shape. More...
 
def diamond
 Create a curve with a DIAMOND shape. More...
 
def leash
 Create a curve with a LEASH shape. More...
 
def cubewithpeak
 Create a curve with a CUBE WITH PEAK shape. More...
 
def sphere
 Create a curve with a SPHERE shape. More...
 
def arrow
 Create a curve with a ARROW shape. More...
 
def crossarrow
 Create a curve with a CROSS ARROW shape. More...
 
def bendedarrow
 Create a curve with a BENDED ARROW shape. More...
 
def bendedarrow2
 Create a curve with a BENDED ARROW shape. More...
 
def cross
 Create a curve with a CROSS shape. More...
 
def glasses
 Create a curve with GLASSES shape. More...
 
def lookat
 Create a curve with a LOOKAT shape. More...
 
def eyearrow
 Create a curve with a EYE ARROW shape. More...
 
def anglesurvey
 Create a curve with a ANGLE SURVEY shape. More...
 
def eyeball
 Create a curve with a EYE BALL shape. More...
 
def rectanglecube
 Create a curve with a RECTANGLE CUBE shape. More...
 
def man
 Create a curve with a MAN shape. More...
 
def null
 Create a curve with a NULL shape. More...
 
def getPointArrayWithOffset
 MISC. More...
 

Detailed Description

This file is part of GEAR_mc.
GEAR_mc is a fork of Jeremie Passerin's GEAR project.

GEAR is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/lgpl.html>.

Author:     Jeremie Passerin    geerem@hotmail.com  www.jeremiepasserin.com
Fork Author:  Miquel Campos       hello@miqueltd.com  www.miqueltd.com
Date:       2013 / 08 / 16
Author
Jeremie Passerin

Function Documentation

def gear.xsi.icon.anglesurvey (   parent = xsi.ActiveSceneRoot,
  name = "angleSurvey",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a ANGLE SURVEY shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.arrow (   parent = xsi.ActiveSceneRoot,
  name = "arrow",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a ARROW shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.bendedarrow (   parent = xsi.ActiveSceneRoot,
  name = "bendedArrow",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a BENDED ARROW shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.bendedarrow2 (   parent = xsi.ActiveSceneRoot,
  name = "bendedArrow2",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a BENDED ARROW shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.boomerang (   parent = xsi.ActiveSceneRoot,
  name = "boomerang",
  width = 1,
  depth = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a BOOMERANG shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
depthDouble - Depth of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.circle (   parent = xsi.ActiveSceneRoot,
  name = "circle",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a CIRCLE shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.compas (   parent = xsi.ActiveSceneRoot,
  name = "compas",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a COMPAS shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.cross (   parent = xsi.ActiveSceneRoot,
  name = "cross",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a CROSS shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.crossarrow (   parent = xsi.ActiveSceneRoot,
  name = "crossArrow",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a CROSS ARROW shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.cube (   parent = xsi.ActiveSceneRoot,
  name = "cube",
  width = 1,
  height = 1,
  depth = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a CUBE shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
heightDouble - Height of the shape.
depthDouble - Depth of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.cubewithpeak (   parent = xsi.ActiveSceneRoot,
  name = "cubewithpeak",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a CUBE WITH PEAK shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.cylinder (   parent = xsi.ActiveSceneRoot,
  name = "cylinder",
  width = 1,
  heigth = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a CYLINDER shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.diamond (   parent = xsi.ActiveSceneRoot,
  name = "diamond",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a DIAMOND shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.eyearrow (   parent = xsi.ActiveSceneRoot,
  name = "eyeArrow",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a EYE ARROW shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.eyeball (   parent = xsi.ActiveSceneRoot,
  name = "eyeBall",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a EYE BALL shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.flower (   parent = xsi.ActiveSceneRoot,
  name = "flower",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a FLOWER shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.foil (   parent = xsi.ActiveSceneRoot,
  name = "foil",
  width = 1,
  length = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a FOIL shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
lengthDouble - Length of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.getPointArrayWithOffset (   point_pos,
  pos_offset,
  rot_offset 
)

MISC.

======================================================== Convert a list of vector to a List of Double and add the position and rotation offset.

Parameters
point_posList of SIVector3 - The point position.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.glasses (   parent = xsi.ActiveSceneRoot,
  name = "glasses",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with GLASSES shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.leash (   parent = xsi.ActiveSceneRoot,
  name = "leash",
  width = 1,
  attachedPos = XSIMath.CreateVector3(),
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a LEASH shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
attachedPosSIVector3 - Position of the end of the leash.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.lookat (   parent = xsi.ActiveSceneRoot,
  name = "lookat",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a LOOKAT shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.man (   parent = xsi.ActiveSceneRoot,
  name = "man",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a MAN shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.null (   parent = xsi.ActiveSceneRoot,
  name = "null",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a NULL shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.pointer (   parent = xsi.ActiveSceneRoot,
  name = "pointer",
  width = 1,
  depth = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a POINTER shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
depthDouble - Depth of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.primOrIcon (   prim,
  parent,
  name,
  t,
  color,
  icon,
  kwargs 
)

DRAW METHODS.

Create a icon or a primitive form primitive definition

Parameters
primPrimitiveDefinition - None to skip
parentX3DObject - Parent of the newly created object
nameString - Name of the newly created object
tSITransformation - Transformation of the newly created object
colorList of Float - Color of the newly created object in RGB
iconString - Icon type in case prim is not define
kwargs- Argument to create the icon
Returns
X3DObject
def gear.xsi.icon.pyramid (   parent = xsi.ActiveSceneRoot,
  name = "pyramid",
  width = 1,
  height = 1,
  depth = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a PYRAMIDE shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
heightDouble - Height of the shape.
depthDouble - Depth of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.rectanglecube (   parent = xsi.ActiveSceneRoot,
  name = "rectangleCube",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a RECTANGLE CUBE shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.sphere (   parent = xsi.ActiveSceneRoot,
  name = "sphere",
  width = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a SPHERE shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.
def gear.xsi.icon.square (   parent = xsi.ActiveSceneRoot,
  name = "square",
  width = 1,
  depth = 1,
  color = [0,
  t = XSIMath.CreateTransform(),
  pos_offset = XSIMath.CreateVector3(),
  rot_offset = XSIMath.CreateRotation() 
)

Create a curve with a SQUARE shape.

Parameters
parentX3DObject - The parent object of the newly created curve.
nameString - Name of the curve.
widthDouble - Width of the shape.
depthDouble - Depth of the shape.
colorList of Double - RGB color of the curve.
tSITransform - The global transformation of the curve.
pos_offsetSIVector3 - The position offset of the curve from its center.
rot_offsetSIRotation - The rotation offset of the curve from its center.