$search

edu::tum::cs::vis::model::util::Group Class Reference

Inheritance diagram for edu::tum::cs::vis::model::util::Group:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addChild (Group g)
void addTriangle (Triangle t)
void draw (PGraphics g, Color overrideColor)
void drawBoundingBox (PGraphics gr, boolean recursive)
ArrayList< GroupgetChildren ()
void getIntersectedTriangles (final Point3f rayStart, final Point3f rayEnd, final ArrayList< IntersectedTriangle > intersectedTriangles)
Float getMaxX ()
Float getMaxY ()
Float getMaxZ ()
Mesh getMesh ()
Float getMinX ()
Float getMinY ()
Float getMinZ ()
Model getModel ()
String getName ()
float getTotalDepth ()
float getTotalHeight ()
float getTotalWidth ()
 Group (Model parent)
void initialize (String textureBasePath)
boolean removeTriangle (Triangle t)
void resetMinMaxValues ()
void setChildren (ArrayList< Group > children)
void setMesh (Mesh mesh)
void setName (String name)

Protected Attributes

Float maxX = null
Float maxY = null
Float maxZ = null
Float minX = null
Float minY = null
Float minZ = null

Private Member Functions

void initialize (String textureBasePath, boolean isRoot)

Private Attributes

ArrayList< Groupchildren = new ArrayList<Group>()
Mesh mesh = new Mesh()
final Model model
String name

Static Private Attributes

static final long serialVersionUID = -3347910663268579041L

Detailed Description

Represents a Mesh-Group with a Name. A group can multiple child groups so it will present a mesh hierarchy.

Author:
Stefan Profanter

Definition at line 27 of file Group.java.


Constructor & Destructor Documentation

edu::tum::cs::vis::model::util::Group::Group ( Model  parent  )  [inline]

Constructor for group.

Parameters:
parent Parent model of this group.

Definition at line 84 of file Group.java.


Member Function Documentation

void edu::tum::cs::vis::model::util::Group::addChild ( Group  g  )  [inline]

Add a child to this group

Parameters:
g group to add as a child of this

Definition at line 94 of file Group.java.

void edu::tum::cs::vis::model::util::Group::addTriangle ( Triangle  t  )  [inline]

Add triangle to the mesh of this group and also to parent model.

Parameters:
t triangle to add.

Definition at line 157 of file Group.java.

void edu::tum::cs::vis::model::util::Group::draw ( PGraphics  g,
Color  overrideColor 
) [inline]

Draw method to draw the model on the applet.

Parameters:
g The applet to draw on.
overrideColor override the draw color an texture. Draw whole object in the given color if != null

Definition at line 107 of file Group.java.

void edu::tum::cs::vis::model::util::Group::drawBoundingBox ( PGraphics  gr,
boolean  recursive 
) [inline]

Draws the bounding box around the model with the current style

Parameters:
gr graphics context
recursive Draw also Bounding-Box of children

Definition at line 142 of file Group.java.

ArrayList<Group> edu::tum::cs::vis::model::util::Group::getChildren (  )  [inline]

Get all direct child groups

Returns:
list with all child groups

Definition at line 171 of file Group.java.

void edu::tum::cs::vis::model::util::Group::getIntersectedTriangles ( final Point3f  rayStart,
final Point3f  rayEnd,
final ArrayList< IntersectedTriangle intersectedTriangles 
) [inline]

Searches all triangles which intersect the given ray (rayStart, rayEnd) and adds them to intersectedTriangles. Not only the segment between rayStart and rayEnd is checked but the whole ray from -infinity to +infinity.

Parameters:
rayStart start point of the ray.
rayEnd end point of the ray.
intersectedTriangles list where to add intersecting triangles

Definition at line 187 of file Group.java.

Float edu::tum::cs::vis::model::util::Group::getMaxX (  )  [inline]

Set maximum x coordinate of this group. No coordinate of all its children should be bigger than this value. Used for drawing a bounding box.

Returns:
maximum x

Definition at line 203 of file Group.java.

Float edu::tum::cs::vis::model::util::Group::getMaxY (  )  [inline]

Set maximum y coordinate of this group. No coordinate of all its children should be bigger than this value. Used for drawing a bounding box.

Returns:
maximum y

Definition at line 215 of file Group.java.

Float edu::tum::cs::vis::model::util::Group::getMaxZ (  )  [inline]

Set maximum z coordinate of this group. No coordinate of all its children should be bigger than this value. Used for drawing a bounding box.

Returns:
maximum z

Definition at line 227 of file Group.java.

Mesh edu::tum::cs::vis::model::util::Group::getMesh (  )  [inline]

Get the mesh containing triangles and lines

Returns:
the mesh

Definition at line 238 of file Group.java.

Float edu::tum::cs::vis::model::util::Group::getMinX (  )  [inline]

Set minimum x coordinate of this group. No coordinate of all its children should be smaller than this value. Used for drawing a bounding box.

Returns:
minimum x

Definition at line 248 of file Group.java.

Float edu::tum::cs::vis::model::util::Group::getMinY (  )  [inline]

Set minimum y coordinate of this group. No coordinate of all its children should be smaller than this value. Used for drawing a bounding box.

Returns:
minimum y

Definition at line 260 of file Group.java.

Float edu::tum::cs::vis::model::util::Group::getMinZ (  )  [inline]

Set minimum z coordinate of this group. No coordinate of all its children should be smaller than this value. Used for drawing a bounding box.

Returns:
minimum z

Definition at line 272 of file Group.java.

Model edu::tum::cs::vis::model::util::Group::getModel (  )  [inline]

Get parent model.

Returns:
the model

Definition at line 283 of file Group.java.

String edu::tum::cs::vis::model::util::Group::getName ( void   )  [inline]

Get name of this group (normally parsed from model file)

Returns:
the name

Definition at line 292 of file Group.java.

float edu::tum::cs::vis::model::util::Group::getTotalDepth (  )  [inline]

Returns the total depth of the group by searching the biggest distance on the z-axis between the vectors.

Returns:
float as depth of the group

Definition at line 302 of file Group.java.

float edu::tum::cs::vis::model::util::Group::getTotalHeight (  )  [inline]

Returns the total height of the group by searching the biggest distance on the y-axis between the vectors.

Returns:
float as height of the group

Definition at line 322 of file Group.java.

float edu::tum::cs::vis::model::util::Group::getTotalWidth (  )  [inline]

Returns the total width of the group by searching the biggest distance on the x-axis between the vectors.

Returns:
float as width of the group

Definition at line 342 of file Group.java.

void edu::tum::cs::vis::model::util::Group::initialize ( String  textureBasePath,
boolean  isRoot 
) [inline, private]

Call this function only in the root group! It will center the whole Group with its children to the Point (0,0,0) which means the volumetric center will then be at point 0.

Definition at line 373 of file Group.java.

void edu::tum::cs::vis::model::util::Group::initialize ( String  textureBasePath  )  [inline]

Call this function only in the root group! It will center the whole Group with its children to the Point (0,0,0) which means the volumetric center will then be at point 0.

Parameters:
textureBasePath Base path for relative file names

Definition at line 364 of file Group.java.

boolean edu::tum::cs::vis::model::util::Group::removeTriangle ( Triangle  t  )  [inline]

Remove triangle from group or child group.

Parameters:
t triangle to remove.
Returns:
true if triangle is found and removed.

Definition at line 122 of file Group.java.

void edu::tum::cs::vis::model::util::Group::resetMinMaxValues (  )  [inline]

Set minX,maxX, minY,maxY, minZ, maxZ to null to force recalculation when they are accessed next time

Definition at line 397 of file Group.java.

void edu::tum::cs::vis::model::util::Group::setChildren ( ArrayList< Group children  )  [inline]

Set child groups of this group. Used to create a hierarchy

Parameters:
children list of children

Definition at line 413 of file Group.java.

void edu::tum::cs::vis::model::util::Group::setMesh ( Mesh  mesh  )  [inline]

Set the mesh containing triangles and lines

Parameters:
mesh the mesh

Definition at line 423 of file Group.java.

void edu::tum::cs::vis::model::util::Group::setName ( String  name  )  [inline]

Set name of this group (normally parsed from model file)

Parameters:
name to set

Definition at line 433 of file Group.java.


Member Data Documentation

ArrayList<Group> edu::tum::cs::vis::model::util::Group::children = new ArrayList<Group>() [private]

Child groups

Definition at line 76 of file Group.java.

Maximum x-position of group

Definition at line 45 of file Group.java.

Maximum x-position of group

Definition at line 53 of file Group.java.

Maximum x-position of group

Definition at line 61 of file Group.java.

Holds the Mesh for this group

Definition at line 66 of file Group.java.

Minimum x-position of group

Definition at line 41 of file Group.java.

Minimum x-position of group

Definition at line 49 of file Group.java.

Minimum x-position of group

Definition at line 57 of file Group.java.

parent model of this group

Definition at line 32 of file Group.java.

Name of this group

Definition at line 71 of file Group.java.

final long edu::tum::cs::vis::model::util::Group::serialVersionUID = -3347910663268579041L [static, private]

Auto generated

Definition at line 37 of file Group.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


knowrob_cad_parser
Author(s): Stefan Profanter
autogenerated on Tue Mar 5 12:15:34 2013