|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.wvs.client.pview.PViewStructure
The viewer structure object is currently in a primative form. Its purpose is to keep track of the structure that has been passed to the viewer.
In the future this will
a)track changes in location in the structure
b)allow multiple viewables (sub-structure) to be associated to a single node in the calling application
c)ensure correct visual update on component movement and deletion
Supported API: false
Extendable: false
Field Summary | |
private boolean |
debug
|
private Vector |
loaded
|
private Vector |
locations
|
private Vector |
names
|
private PViewProxy |
proxy
|
private long |
rootNodeID
|
private Vector |
shapesources
|
private boolean |
structureLoaded
|
private Vector |
visualIDs
|
Constructor Summary | |
(package private) |
PViewStructure(PViewProxy proxy,
boolean debug)
Create the structure |
Method Summary | |
void |
componentSelect(long visualID,
long select,
long reset)
Visual select on the component |
void |
dataLoaded(long visualID)
Sets to true the load state of a element in the structure |
private void |
dataLoaded(String shapesource)
Sets to true the load state of a element in the structure |
void |
deleteComponent(long visualID)
Visually delete the component and tidy up |
void |
deselectComponent(long visualID)
Visual deselect on the component |
void |
dump()
|
String |
getShapeSource(long visualID)
Find the shapesource assocaited to the component id |
String |
getStructureNameforID(long visualID)
Find the name assocaited to the component id |
void |
hideComponent(long visualID)
Visually hide the component |
long |
insertComponent(long parentID,
String name,
String shapeSource,
String idShapeSource,
String location,
String lengthUnit,
String boundingBox,
String color,
String material)
Inserts a component into the structure |
long |
insertComponent(long parentID,
String name,
String edFileUrl,
String idShapeSource,
String location,
String lengthUnit,
String boundingBox,
String color,
String material,
String compID,
String linkID)
Inserts a component into the structure. |
boolean |
isDataLoaded(long visualID)
Returns the load state of a component |
private boolean |
isDataLoaded(String shapesource)
Returns the load state of a file referenced by a URL |
boolean |
isDebug()
Returns the debug state |
boolean |
isStructureLoaded()
Returns the loaded state of the structure |
boolean |
resetStructure(boolean clearCache)
Resets the structure and all assocaited viewing information |
void |
selectComponent(long visualID)
Visual select on the component |
void |
setDebug(boolean debug)
Switches debug information on/off |
void |
setStructureLoaded(boolean loaded)
Sets is a structure is loaded |
void |
showComponent(long visualID)
Visually show the component |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private long rootNodeID
private PViewProxy proxy
private boolean structureLoaded
private Vector visualIDs
private Vector names
private Vector loaded
private Vector shapesources
private Vector locations
private boolean debug
Constructor Detail |
PViewStructure(PViewProxy proxy, boolean debug)
proxy
- the viewer proxydebug
- flagMethod Detail |
public void setDebug(boolean debug)
debug
- specifies if debug information is to be producedpublic boolean isDebug()
public boolean resetStructure(boolean clearCache)
clearCache
- specifies if the file cache is to be also cleared
public void setStructureLoaded(boolean loaded)
public boolean isStructureLoaded()
public long insertComponent(long parentID, String name, String shapeSource, String idShapeSource, String location, String lengthUnit, String boundingBox, String color, String material)
parentID
- the visualID of the parent. 0 if this is the root nodename
- displayed during file transfer and in debug messageslocation
- the component location relative to the parent. x,y,z,ax,ay,azlengthUnit
- the units of the location (typically M for Windchill)color
- the colormaterial
- the material
public void dump()
public long insertComponent(long parentID, String name, String edFileUrl, String idShapeSource, String location, String lengthUnit, String boundingBox, String color, String material, String compID, String linkID)
parentID
- the visualID of the parent. 0 if this is the root nodename
- displayed during file transfer and in debug messagesedFileUrl
- the url to the viewable information, in the case the ed filelocation
- the component location relative to the parent. x,y,z,ax,ay,azlengthUnit
- the units of the location (typically M for Windchill)color
- the colormaterial
- the materialcompID
- an identifier to the componentlinkID
- an identifier to the link
NOT YET IMPLEMENTED
public boolean isDataLoaded(long visualID)
visualID
- the id whose data is to be retrieved
private boolean isDataLoaded(String shapesource)
shapesource
- the file url
public void dataLoaded(long visualID)
visualID
- the id of the dataprivate void dataLoaded(String shapesource)
shapesource
- the file urlpublic void componentSelect(long visualID, long select, long reset)
visualID
- the id of the componentpublic void selectComponent(long visualID)
visualID
- the id of the componentpublic void deselectComponent(long visualID)
visualID
- the id of the componentpublic void showComponent(long visualID)
visualID
- the id of the componentpublic void hideComponent(long visualID)
visualID
- the id of the componentpublic void deleteComponent(long visualID)
visualID
- the id of the componentpublic String getStructureNameforID(long visualID)
public String getShapeSource(long visualID)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |