|
FreeHEP API Version v1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--hep.graphics.heprep.ref.DefaultHepRep
| Field Summary | |
static String |
cvsId
|
| Constructor Summary | |
DefaultHepRep()
|
|
| Method Summary | |
void |
addInstanceTree(HepRepInstanceTree instance)
Adds an instancetree to this heprep. |
void |
addLayer(String layer)
Add a layer to the list of layers in this heprep. |
void |
addTypeTree(HepRepTypeTree type)
Add a typetree to this heprep. |
String |
checkForException()
Returns last exception thrown and clears it. |
HepRep |
copy()
Returns a deep copy of the heprep, with all its attached trees, where instances are filtered using a HepRepSelectFilter. |
HepRep |
copy(HepRepSelectFilter filter)
Returns a deep copy of the heprep, with all its attached trees, where instances are filtered using a HepRepSelectFilter. |
void |
display()
|
HepRepInstanceTree |
getInstances(String name,
String version,
String[] typeNames)
Returns a named and versioned instancetree for a list of typenames. |
HepRepInstanceTree |
getInstancesAfterAction(String name,
String version,
String[] typeNames,
HepRepAction[] actions,
boolean getPoints,
boolean getDrawAtts,
boolean getNonDrawAtts,
String[] invertAtts)
Returns a named and versioned instancetree for a list of typenames after executing some action and for specific filters. |
Collection |
getInstanceTrees()
Returns a collection of instancetrees. |
HepRepInstanceTree |
getInstanceTreeTop(String name,
String version)
Returns a named and versioned instancetree. |
List |
getLayerOrder()
Returns the list of layers. |
HepRepType |
getType(String name)
Searches for a named type in any of the typetrees. |
HepRepTypeTree |
getTypeTree(String name,
String version)
Returns a named and versioned typetree. |
Collection |
getTypeTrees()
Returns the collection of all typetrees of this heprep. |
void |
removeInstanceTree(HepRepInstanceTree instanceTree)
Remove an instanectree from this heprep. |
void |
removeTypeTree(HepRepTypeTree typeTree)
Remove a typetree from this heprep. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String cvsId
| Constructor Detail |
public DefaultHepRep()
| Method Detail |
public HepRep copy()
throws CloneNotSupportedException
HepRep
copy in interface HepRepCloneNotSupportedException - in case copy is not possible
public HepRep copy(HepRepSelectFilter filter)
throws CloneNotSupportedException
HepRep
copy in interface HepRepfilter - to be used for filtering instances.
CloneNotSupportedException - in case copy is not possiblepublic List getLayerOrder()
HepRep
getLayerOrder in interface HepReppublic void addLayer(String layer)
HepRep
addLayer in interface HepReplayer - name of layer to be added to the back of the list.public void addTypeTree(HepRepTypeTree type)
HepRep
addTypeTree in interface HepReptype - to be added.public void removeTypeTree(HepRepTypeTree typeTree)
HepRep
removeTypeTree in interface HepReptypeTree - to be removed.
public HepRepTypeTree getTypeTree(String name,
String version)
HepRep
getTypeTree in interface HepRepname - name of the typetree.version - version of the typetree.
public Collection getTypeTrees()
HepRep
getTypeTrees in interface HepReppublic HepRepType getType(String name)
HepRep
getType in interface HepRepname - name of type.
public void addInstanceTree(HepRepInstanceTree instance)
HepRep
addInstanceTree in interface HepRepinstance - to be added.public void removeInstanceTree(HepRepInstanceTree instanceTree)
HepRep
removeInstanceTree in interface HepRepinstanceTree - to be removed.
public HepRepInstanceTree getInstanceTreeTop(String name,
String version)
HepRepThis tree needs to be added to the heprep afterwards.
getInstanceTreeTop in interface HepRepname - name of the instancetree.version - version of the instancetree.
public HepRepInstanceTree getInstances(String name,
String version,
String[] typeNames)
HepRepThis tree needs to be added to the heprep afterwards.
getInstances in interface HepRepname - name of the instancetree.version - version of the instancetree.typeNames - a list of typenames for which we need instancetrees.
public HepRepInstanceTree getInstancesAfterAction(String name,
String version,
String[] typeNames,
HepRepAction[] actions,
boolean getPoints,
boolean getDrawAtts,
boolean getNonDrawAtts,
String[] invertAtts)
HepRepThe inversion effect of invertAtts depends on the values of GetDrawAtts and GetNonDrawAtts as follows:
getInstancesAfterAction in interface HepRepname - name of the instancetree.version - version of the instancetree.typeNames - a list of typenames for which we need instancetrees.actions - execute this list of actions before returning.getPoints - include the HepRepPoints in the instance tree.getDrawAtts - include the Draw attributes in the instance tree.getNonDrawAtts - include the Non-Draw attributes in the instance tree.invertAtts - list of attributes to be included or not depending on getDrawAtts and getNonDrawAtts.
public String checkForException()
HepRep
checkForException in interface HepReppublic Collection getInstanceTrees()
HepRep
getInstanceTrees in interface HepReppublic void display()
|
FreeHEP API Version v1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||