JavaView® v2.12

jvx.geom
Class PwClip

java.lang.Object
  |
  +--jv.object.PsObject
        |
        +--jvx.geom.PwClip
All Implemented Interfaces:
java.lang.Cloneable, PsUpdateIf, java.io.Serializable

public class PwClip
extends PsObject

This class provides clipping abilities in JavaView

Version:
12.09.2001, 1.21 revised (kh) Added consideration of element/vertex based Vectorfields. Method cancel added.
30.07.2001, 1.20 revised (kh) Added consideration of Vertex/ElementColors (including ElementNormals and BackfaceColors) and Vertex/ElementTextures.
16.04.2000, 1.10 revised (kp) Slight adjustments when adding to JavaView system.
14.04.2000, 1.00 created (sk,nk)
See Also:
Serialized Form

Fields inherited from class jv.object.PsObject
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, NUM_TAGS
 
Constructor Summary
PwClip()
           
 
Method Summary
 PgElementSet clip()
          clip function performs clipping itself returns clipped surface if clipping enabled, else return whole original geometry
 PgElementSet getGeometry()
          setFunction sets clipping function
 void init()
          If instance has missing name then assign default name 'object_NUMBER' where number is the total number of already created instances.
 boolean isPositiveVisible()
          Get flag whether positive region is visible
 void setFunction(java.lang.String s)
          Set expression of level function used clipping from outside of workshop.
 void setGeometry(PgElementSet geom)
          setFunction sets clipping function
 void setPositiveVisible(boolean flag)
           
 boolean update(java.lang.Object event)
          Update all inspector panels, send update to all registered update listeners and finally update parent.
 
Methods inherited from class jv.object.PsObject
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, removeInspector, removeUpdateListener, setName, setParent, setTag, toString, updatePanels
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PwClip

public PwClip()
Method Detail

init

public void init()
Description copied from class: PsObject
If instance has missing name then assign default name 'object_NUMBER' where number is the total number of already created instances.
Overrides:
init in class PsObject

update

public boolean update(java.lang.Object event)
Description copied from class: PsObject
Update all inspector panels, send update to all registered update listeners and finally update parent. Each of those updates has this object as event independent of the argument of this method.

Central update method of this object. Must be overwritten if this class receives unknown events, say, from new children. Any subclass must class invoke super.update(event) on all events it does handle itself.

Overrides:
update in class PsObject
Following copied from class: jv.object.PsObject
See Also:
PsObject.setParent(PsUpdateIf), PsObject.getFather(), PsObject.addUpdateListener(PsUpdateIf)

getGeometry

public PgElementSet getGeometry()
setFunction sets clipping function

setGeometry

public void setGeometry(PgElementSet geom)
setFunction sets clipping function

setFunction

public void setFunction(java.lang.String s)
Set expression of level function used clipping from outside of workshop. String must be a valid mathematical function in variables {u,v,w} where the number of variables must be equal to the vertex dimension of the geometry to which clipping is applied.
See Also:
Parser

isPositiveVisible

public boolean isPositiveVisible()
Get flag whether positive region is visible

setPositiveVisible

public void setPositiveVisible(boolean flag)

clip

public PgElementSet clip()
clip function performs clipping itself returns clipped surface if clipping enabled, else return whole original geometry

JavaView® v2.12

The software JavaView® is copyright protected. All Rights Reserved.