Classes | Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
com.generalrobotix.ui.item.GrxShapeItem Class Reference

sensor item More...

Inheritance diagram for com.generalrobotix.ui.item.GrxShapeItem:
Inheritance graph
[legend]

Classes

class  TextureInfoLocal
 

Public Member Functions

GrxShapeItem clone ()
 Override clone method. More...
 
void coneSize (String property, String size)
 
void createnewPrimitiveShape (int type)
 
void cylinderSize (String property, String size)
 
ValueEditType GetValueEditType (String key)
 
 GrxShapeItem (String name, GrxPluginManager manager, GrxModelItem model)
 constructor More...
 
void loadInlineShape (Matrix4d[] shapeT, Matrix4d inlinedT, int[] index, Matrix4d segmentT)
 
void loadnewInlineShape (SceneInfo sInfo)
 
void loadShape (Matrix4d shapeT, int index, Matrix4d segmentT)
 
boolean propertyChanged (String property, String value)
 update value of property More...
 
void size (String size)
 
void sphereSize (String size)
 
- Public Member Functions inherited from com.generalrobotix.ui.item.GrxShapeTransformItem
void addPrimitiveShape (String name)
 
void addShape (Matrix4d segmentT)
 
void addShape (String fPath)
 create and add a new shape as a child More...
 
Matrix4d getTransform ()
 
 GrxShapeTransformItem (String name, GrxPluginManager manager, GrxModelItem model)
 
void rename (String newName)
 
double[] rotation ()
 
boolean rotation (String value)
 set new rotation from string More...
 
boolean rotation (double[] rot)
 
void transform (double[] w)
 
double[] translation ()
 
boolean translation (String value)
 set new translation from string More...
 
boolean translation (double[] pos)
 set new translation to TransformGroup More...
 
- Public Member Functions inherited from com.generalrobotix.ui.item.GrxTransformItem
 GrxTransformItem (String name, GrxPluginManager manager, GrxModelItem model)
 
void addChild (GrxTransformItem child)
 add a child More...
 
void removeChild (GrxTransformItem child)
 remove a child from children More...
 
void delete ()
 delete this item and children More...
 
GrxModelItem model ()
 get model item to which this item belongs More...
 
void setFocused (boolean b)
 
void gatherSensors (String type, List< GrxSensorItem > sensors)
 
Vector3d transformV3 (Vector3d v)
 
Switch getBBSwitch ()
 
- Public Member Functions inherited from com.generalrobotix.ui.GrxBaseItem
File chooseSaveFile ()
 
GrxBaseItem clone ()
 Override clone method. More...
 
boolean create ()
 
void delete ()
 delete this item More...
 
File getDefaultDir ()
 get default directory More...
 
String getFileExtention ()
 get file extension More...
 
Object getValue ()
 
boolean load (File file)
 
void paste (String clipVal)
 paste object More...
 
void setValue (Object o)
 
- Public Member Functions inherited from com.generalrobotix.ui.GrxBasePlugin
void addObserver (GrxObserver v)
 
GrxBasePlugin clone ()
 Override clone method. More...
 
void deleteObserver (GrxObserver v)
 
boolean equals (Object obj)
 check whether obj equals to this More...
 
Element getElement ()
 get element More...
 
Image getIcon ()
 get icon More...
 
Vector< Action > getMenu ()
 get menu More...
 
String[] getMenuPath ()
 get menu path More...
 
final String getName ()
 get name More...
 
ArrayList< GrxObservergetObserver ()
 
String getOldName ()
 
Vector< MenuManager > getSubMenu ()
 get subMenu More...
 
String getURL (boolean expand)
 
ValueEditType GetValueEditType (String key)
 Return editing type of the key item. More...
 
boolean isExclusive ()
 check whether this is exclusive or not More...
 
boolean isSelected ()
 check whether this is selected or not More...
 
void notifyObservers (Object...arg)
 
boolean propertyChanged (String property, String value)
 check validity of new value of property and update if valid More...
 
boolean registerCORBA ()
 
void rename (String newName)
 rename this item More...
 
void restoreProperties ()
 restore properties. Called by menu item "restore Properties" More...
 
void setDocument (Document doc)
 set document More...
 
void setElement (Element element)
 set element More...
 
void setExclusive (boolean b)
 set exclusive flag More...
 
void setFocused (boolean b)
 set/unset focus on this plugin More...
 
void setMenuItem (Action a)
 add a menu item More...
 
void setName (String name)
 set name More...
 
Object setProperty (String key, String value)
 set property value associated with a keyword More...
 
void setSelected (boolean b)
 set selected flag More...
 
void setSubMenu (MenuManager m)
 add a submenu More...
 
void setURL (String url)
 set URL property More...
 
void shutdown ()
 
Element storeProperties ()
 store properties More...
 
final String toString ()
 convert to String. Currently, name is returned. More...
 
void unregisterCORBA ()
 
- Public Member Functions inherited from com.generalrobotix.ui.util.GrxConfigBundle
final Double getDbl (String key, Double defaultVal)
 get double value associated to key More...
 
Double getDbl (String value)
 
final double[] getDblAry (String key, double[] defaultVal)
 get double array associated to key More...
 
double[] getDblAry (String value)
 get array of double from String More...
 
final Float getFlt (String key, Float defaultVal)
 get float value associated to key More...
 
final Float getFlt (String value)
 
final float[] getFltAry (String key, float[] defaultVal)
 get float array associated to key More...
 
float[] getFltAry (String value)
 
final Integer getInt (String key, Integer defaultVal)
 get integer value associated to key More...
 
final int[] getIntAry (String key)
 get integer array associated to key More...
 
final Short getShort (String key, Short defaultVal)
 get short value associated to key More...
 
Short getShort (String value)
 
final String getStr (String key)
 get value associated to keyword More...
 
final String getStr (String key, String defaultVal)
 get value associated to key More...
 
 GrxConfigBundle ()
 constructor More...
 
 GrxConfigBundle (String fname) throws IOException
 construct from a file More...
 
final boolean isFalse (String key)
 check whether value associated to key includes a word "false" More...
 
final boolean isFalse (String key, boolean defaultVal)
 check whether value associated to key includes a word "false" More...
 
final boolean isTrue (String key)
 check whether value associated to key includes a word "true" More...
 
final boolean isTrue (String key, boolean defaultVal)
 check whether value associated to key includes a word "true" More...
 
void load (String fname) throws IOException
 load config from a file More...
 
final void setBool (String key, boolean value)
 
final void setDbl (String key, double value)
 associate double value to key More...
 
final void setDbl (String key, double value, int digits)
 associate double value to key More...
 
final void setDblAry (String key, double[] value, int digits)
 associate double array to key More...
 
final void setDblAry (String key, double[] value)
 associate double array to key More...
 
final void setFlt (String key, float value)
 associate float value to key More...
 
final void setFltAry (String key, float[] value)
 associate float array to key More...
 
final void setInt (String key, int value)
 associate int value to key More...
 
final void setShort (String key, short value)
 associate short value to key More...
 
void store (String fname, String comments) throws IOException
 store this config More...
 

Public Attributes

AppearanceInfo[] appearances_
 
boolean isInline_ = false
 
MaterialInfo[] materials_
 
ShapeInfo[] shapes_
 
TextureInfo[] textures_
 
- Public Attributes inherited from com.generalrobotix.ui.item.GrxTransformItem
BranchGroup bg_
 
Vector< GrxTransformItemchildren_
 
GrxTransformItem parent_
 
TransformGroup tg_
 

Protected Member Functions

Appearance createAppearance ()
 
Material createMaterial (MaterialInfo materialInfo)
 
void initialize (Transform3D t3d)
 
void setMaterial (Appearance appearance, MaterialInfo materialInfo)
 
void setTexture (Appearance appearance, TextureInfo textureInfo)
 
- Protected Member Functions inherited from com.generalrobotix.ui.item.GrxShapeTransformItem
void addTransformedShapeIndex (TransformedShapeIndex transformedShapeIndex)
 
void buildShapeTransforms (double[][] inlinedShapeTransformMatrices)
 
void initMenu ()
 
- Protected Member Functions inherited from com.generalrobotix.ui.item.GrxTransformItem
void resizeBoundingBox ()
 
- Protected Member Functions inherited from com.generalrobotix.ui.GrxBaseItem
 GrxBaseItem (String name, GrxPluginManager manager)
 constructor More...
 
void setDefaultDirectory (String dir)
 
void setFileExtension (String ext)
 
- Protected Member Functions inherited from com.generalrobotix.ui.GrxBasePlugin
 GrxBasePlugin (String name, GrxPluginManager manager)
 constructor More...
 
void setIcon (String iconName)
 set icon More...
 
void setMenuPath (String[] path)
 set menu path More...
 
boolean syncExec (Runnable r)
 Transfer SWT UI thread. More...
 

Private Member Functions

Shape3D createShape3D (ShapeInfo shapeInfo, AppearanceInfo appearanceInfo, MaterialInfo materialInfo, TextureInfo textureInfo)
 create Shape3D object from shapeInfo, appearanceInfo, MaterialInfo and TextureInfo More...
 
void setColors (GeometryInfo geometryInfo, ShapeInfo shapeInfo, AppearanceInfo appearanceInfo)
 
void setNormals (GeometryInfo geometryInfo, ShapeInfo shapeInfo, AppearanceInfo appearanceInfo)
 
void setPrimitiveProperty (ShapeInfo shapeInfo)
 
void setShape (Matrix4d[] shapeT, Matrix4d inlinedT, int n, Matrix4d segmentT)
 
void setShapeInfofromModel (short shapeIndex, int id)
 
void size (float[] newSize)
 
void sphereSize (float[] newSize)
 

Private Attributes

Appearance appearance_ =null
 
BranchGroup bg_
 
int primitiveFlag = Primitive.GEOMETRY_NOT_SHARED | Primitive.GENERATE_NORMALS | Primitive.GENERATE_TEXTURE_COORDS
 

Additional Inherited Members

- Static Public Member Functions inherited from com.generalrobotix.ui.GrxBasePlugin
static Object getField (Class<?extends GrxBasePlugin > cls, String field, Object defaultValue)
 get field More...
 
- Protected Attributes inherited from com.generalrobotix.ui.item.GrxTransformItem
GrxModelItem model_
 
- Protected Attributes inherited from com.generalrobotix.ui.GrxBaseItem
String clipValue_ = ""
 
File file_
 
- Protected Attributes inherited from com.generalrobotix.ui.GrxBasePlugin
Document doc_
 
Element element_
 
GrxPluginManager manager_
 
- Static Protected Attributes inherited from com.generalrobotix.ui.GrxBaseItem
static final String[] jointTypeComboItem_ = new String[] { "fixed", "rotate", "free", "slide" }
 
static final String[] methodComboItem_ = new String[] { "EULER", "RUNGE_KUTTA" }
 
static final String[] modeComboItem_ = new String[] { "Torque", "HighGain" }
 
- Static Protected Attributes inherited from com.generalrobotix.ui.GrxBasePlugin
static final String[] booleanComboItem_ = new String[] {"true", "false" }
 
static final String INDENT4 = " "
 
static final String ITEM_TAG = "item"
 
static final String PROPERTY_TAG = "property"
 
static final String VIEW_TAG = "view"
 

Detailed Description

sensor item

Definition at line 83 of file GrxShapeItem.java.

Constructor & Destructor Documentation

com.generalrobotix.ui.item.GrxShapeItem.GrxShapeItem ( String  name,
GrxPluginManager  manager,
GrxModelItem  model 
)
inline

constructor

Parameters
namename of this item
managerPluginManager
transformTransform retrieved through ModelLoader
shapeInfoShapeInfo retrieved through ModelLoader
appearanceInfoAppearanceInfo retrieved through ModelLoader
materialInfoMaterialInfo retrieved through ModelLoader
textureInfoTextureInfo retrieved through ModelLoader

Definition at line 104 of file GrxShapeItem.java.

Member Function Documentation

GrxShapeItem com.generalrobotix.ui.item.GrxShapeItem.clone ( )
inline

Override clone method.

Returns
GrxShapeItem

Definition at line 1027 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.coneSize ( String  property,
String  size 
)
inline

Definition at line 772 of file GrxShapeItem.java.

Appearance com.generalrobotix.ui.item.GrxShapeItem.createAppearance ( )
inlineprotected

Definition at line 384 of file GrxShapeItem.java.

Material com.generalrobotix.ui.item.GrxShapeItem.createMaterial ( MaterialInfo  materialInfo)
inlineprotected

Definition at line 591 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.createnewPrimitiveShape ( int  type)
inline

Definition at line 140 of file GrxShapeItem.java.

Shape3D com.generalrobotix.ui.item.GrxShapeItem.createShape3D ( ShapeInfo  shapeInfo,
AppearanceInfo  appearanceInfo,
MaterialInfo  materialInfo,
TextureInfo  textureInfo 
)
inlineprivate

create Shape3D object from shapeInfo, appearanceInfo, MaterialInfo and TextureInfo

Parameters
shapeInfoshape information
appearanceInfoappearance information
materialInfomaterial information
textureInfotexture information
Returns
created shape

Definition at line 432 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.cylinderSize ( String  property,
String  size 
)
inline

Definition at line 816 of file GrxShapeItem.java.

ValueEditType com.generalrobotix.ui.item.GrxShapeItem.GetValueEditType ( String  key)
inline

Definition at line 1166 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.initialize ( Transform3D  t3d)
inlineprotected

Definition at line 305 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.loadInlineShape ( Matrix4d[]  shapeT,
Matrix4d  inlinedT,
int[]  index,
Matrix4d  segmentT 
)
inline

Definition at line 228 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.loadnewInlineShape ( SceneInfo  sInfo)
inline

Definition at line 267 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.loadShape ( Matrix4d  shapeT,
int  index,
Matrix4d  segmentT 
)
inline

Definition at line 113 of file GrxShapeItem.java.

boolean com.generalrobotix.ui.item.GrxShapeItem.propertyChanged ( String  property,
String  value 
)
inline

update value of property

Parameters
propertyname of property
valuevalue of property
Returns
true if updated successfully, false otherwise

Definition at line 726 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.setColors ( GeometryInfo  geometryInfo,
ShapeInfo  shapeInfo,
AppearanceInfo  appearanceInfo 
)
inlineprivate

Definition at line 616 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.setMaterial ( Appearance  appearance,
MaterialInfo  materialInfo 
)
inlineprotected

Definition at line 537 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.setNormals ( GeometryInfo  geometryInfo,
ShapeInfo  shapeInfo,
AppearanceInfo  appearanceInfo 
)
inlineprivate

Definition at line 665 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.setPrimitiveProperty ( ShapeInfo  shapeInfo)
inlineprivate

Definition at line 1135 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.setShape ( Matrix4d[]  shapeT,
Matrix4d  inlinedT,
int  n,
Matrix4d  segmentT 
)
inlineprivate

Definition at line 243 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.setShapeInfofromModel ( short  shapeIndex,
int  id 
)
inlineprivate

Definition at line 402 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.setTexture ( Appearance  appearance,
TextureInfo  textureInfo 
)
inlineprotected

Definition at line 551 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.size ( float[]  newSize)
inlineprivate

Definition at line 750 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.size ( String  size)
inline

Definition at line 767 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.sphereSize ( float[]  newSize)
inlineprivate

Definition at line 869 of file GrxShapeItem.java.

void com.generalrobotix.ui.item.GrxShapeItem.sphereSize ( String  size)
inline

Definition at line 886 of file GrxShapeItem.java.

Member Data Documentation

Appearance com.generalrobotix.ui.item.GrxShapeItem.appearance_ =null
private

Definition at line 91 of file GrxShapeItem.java.

AppearanceInfo [] com.generalrobotix.ui.item.GrxShapeItem.appearances_

Definition at line 86 of file GrxShapeItem.java.

BranchGroup com.generalrobotix.ui.item.GrxShapeItem.bg_
private

Definition at line 92 of file GrxShapeItem.java.

boolean com.generalrobotix.ui.item.GrxShapeItem.isInline_ = false

Definition at line 84 of file GrxShapeItem.java.

MaterialInfo [] com.generalrobotix.ui.item.GrxShapeItem.materials_

Definition at line 87 of file GrxShapeItem.java.

int com.generalrobotix.ui.item.GrxShapeItem.primitiveFlag = Primitive.GEOMETRY_NOT_SHARED | Primitive.GENERATE_NORMALS | Primitive.GENERATE_TEXTURE_COORDS
private

Definition at line 90 of file GrxShapeItem.java.

ShapeInfo [] com.generalrobotix.ui.item.GrxShapeItem.shapes_

Definition at line 85 of file GrxShapeItem.java.

TextureInfo [] com.generalrobotix.ui.item.GrxShapeItem.textures_

Definition at line 88 of file GrxShapeItem.java.


The documentation for this class was generated from the following file:


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat Apr 13 2019 02:14:30