JavaView® v2.00.008

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:
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

Field Summary
protected  boolean m_bPositive
           
protected  PuDouble m_clipConst
           
protected  PgElementSet m_clipGeom
           
protected  java.lang.String m_defaultFunction
           
protected  PsDialog m_dialog
           
protected  PuFunction m_function
           
protected  PgElementSet m_saveGeom
           
 
Fields inherited from class jv.object.PsObject
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, m_infoPanel, m_name, m_panelList, m_parent, m_tag, m_updateList, 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, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_dialog

protected PsDialog m_dialog

m_saveGeom

protected PgElementSet m_saveGeom

m_clipGeom

protected PgElementSet m_clipGeom

m_function

protected PuFunction m_function

m_defaultFunction

protected java.lang.String m_defaultFunction

m_clipConst

protected PuDouble m_clipConst

m_bPositive

protected boolean m_bPositive
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.00.008

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