maspack.apps
Class MeshThicken.Region
java.lang.Object
maspack.render.GLRenderableBase
maspack.render.RenderableBase
maspack.apps.MeshThicken.Region
- All Implemented Interfaces:
- HasProperties, GLRenderable, GLSelectable, HasRenderProps, Renderable
- Enclosing class:
- MeshThicken
public static class MeshThicken.Region
- extends RenderableBase
- implements HasProperties
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myProps
public static PropertyList myProps
createRenderProps
public RenderProps createRenderProps()
- Description copied from interface:
HasRenderProps
- Factory method to create render properties appropriate to this object.
- Specified by:
createRenderProps
in interface HasRenderProps
- Returns:
- new render properties for this object
getAllPropertyInfo
public PropertyList getAllPropertyInfo()
- Description copied from interface:
HasProperties
- Returns a list giving static information about all properties exported by
this object.
- Specified by:
getAllPropertyInfo
in interface HasProperties
- Returns:
- static information for all exported properties
getProperty
public Property getProperty(java.lang.String name)
- Returns a property associated with a specified path name. All properties
exported by this object must have a name which is a valid Java identifier.
Specifying one of these names causes the corresponding Property to be
returned. Handles to sub-properties can also be obtained by delimiting the
sub-property name(s) by '
.
' characters. A sub-property
exists if the value of a property is itself an object which exports
properties. It is only possible to obtain a sub-property handle if each of
its ancestor properties exports their values by reference.
- Specified by:
getProperty
in interface HasProperties
- Parameters:
name
- name of the desired property or sub-property
- Returns:
- handle to the property
getMinRadius
public double getMinRadius()
getMargin
public double getMargin()
setMargin
public void setMargin(double margin)
getHeight
public double getHeight()
setHeight
public void setHeight(double height)
getBackHeight
public double getBackHeight()
setBackHeight
public void setBackHeight(double backHeight)
getVisible
public boolean getVisible()
setVisible
public void setVisible(boolean visible)
getThickening
public double getThickening()
setThickening
public void setThickening(double thickening)
setThickenBackSide
public void setThickenBackSide(boolean enable)
getThickenBackSide
public boolean getThickenBackSide()
setUseNormalZScaling
public void setUseNormalZScaling(boolean enable)
getUseNormalZScaling
public boolean getUseNormalZScaling()
getUnthickening
public double getUnthickening()
setUnthickening
public void setUnthickening(double unthickening)
render
public void render(GLRenderer renderer,
int flags)
- Description copied from class:
GLRenderableBase
- Render this object using Open GL via the JOGL.
- Specified by:
render
in interface GLRenderable
- Specified by:
render
in class GLRenderableBase
- Parameters:
renderer
- renderer object which is used to perform the rendering. Provides pointers
to GL and GLU, along with helper functions.flags
- supplies flags that may be used to control different
aspects of the rendering. Flags are defined in GLRenderer
and currently include
GLRenderer.SELECTED
,
GLRenderer.VERTEX_COLORING
,
GLRenderer.HSV_COLOR_INTERPOLATION
,
GLRenderer.SORT_FACES
, and
GLRenderer.CLEAR_MESH_DISPLAY_LISTS
.
render
public void render(GLRenderer renderer,
RenderProps props,
int flags)
isSelectable
public boolean isSelectable()
- Description copied from class:
RenderableBase
- Returns true if this object is in fact selectable.
- Specified by:
isSelectable
in interface GLSelectable
- Overrides:
isSelectable
in class RenderableBase
- Returns:
- true if this object is selectable