|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--Renderer.MetaOverlayPair
Serves as a collection to join the two presentation forms of a MetaOverlay into a unit that can be manipulated as one. A single overlay cannot be rendered as both the frame and the fill of its defining Region. To do so would normally require one overlay for the frame and one for the fill, each using the same Region.
This class eliminates the need to add two MetaOverlays for each Region. It also allows the visibility of both to set with a single call.
MetaOverlay,
Region| Field Summary | |
private MetaOverlay |
m_overlay_fill
|
private MetaOverlay |
m_overlay_frame
|
| Constructor Summary | |
MetaOverlayPair(int overlay_pair_type,
boolean is_special,
Toy toy)
Creates a pair of MetaOverlays, one as the frame and the other as the fill of the given type. |
|
MetaOverlayPair(java.lang.String name,
Region region,
javax.vecmath.Color3f color,
boolean is_frame_otherwise_fill,
boolean show_topology,
Toy toy)
Creates a pair of MetaOverlays, one as the frame and the other as the fill of the given Region. |
|
| Method Summary | |
MetaOverlay |
getFill()
Returns the fill component of a MetaOverlayPair. |
MetaOverlay |
getFrame()
Returns the frame component of a MetaOverlayPair. |
boolean |
getVisible()
Returns whether both components of the MetaOverlayPair are visible. |
void |
setVisible(boolean is_visible)
Sets whether both components of the MetaOverlayPair are visible. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private MetaOverlay m_overlay_frame
private MetaOverlay m_overlay_fill
| Constructor Detail |
public MetaOverlayPair(java.lang.String name,
Region region,
javax.vecmath.Color3f color,
boolean is_frame_otherwise_fill,
boolean show_topology,
Toy toy)
throws java.lang.Exception
name - - the name of the overlay to createregion - - the region defining the bounds of the overlaycolor - - the frame and fill coloris_frame_otherwise_fill - - whether the presentation is as a frame or a fillshow_topology - - whether the topology mesh should be displayedtoy - - the toy this overlay will be associated with
java.lang.Exception - - if the overlay cannot be created
public MetaOverlayPair(int overlay_pair_type,
boolean is_special,
Toy toy)
throws java.lang.Exception
overlay_pair_type - - the special type of overlay (see below)is_special - - for overlay_type=OVERLAY_PAIR_TYPE_SHELL, whether the shell will be back-culled;
for overlay_type=OVERLAY_PAIR_TYPE_PLANE_?, whether the axes will have cones; otherwise
this is ignoredtoy - - the toy this overlay will be associated with
java.lang.Exception - - if the overlay cannot be createdMetaOverlay.OVERLAY_PAIR_TYPE_PLANE_LATERAL,
MetaOverlay.OVERLAY_PAIR_TYPE_PLANE_LONGITUDINAL,
MetaOverlay.OVERLAY_PAIR_TYPE_PLANE_DIRECTIONAL,
MetaOverlay.OVERLAY_PAIR_TYPE_SHELL| Method Detail |
public MetaOverlay getFrame()
public MetaOverlay getFill()
public boolean getVisible()
public void setVisible(boolean is_visible)
is_visible - - the visibilitypublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||