JavaView® v2.00.008

jv.rsrc
Class PsModelInfo

java.lang.Object
  |
  +--jv.object.PsObject
        |
        +--jv.rsrc.PsModelInfo
All Implemented Interfaces:
java.lang.Cloneable, PsUpdateIf, java.io.Serializable
Direct Known Subclasses:
PsSubmission

public class PsModelInfo
extends PsObject

All information about a geometry model required for submission to the Electronic Geometry Models server.

Version:
09.01.01, 2.50 revised (kp) Description element moved into own class PsGeometryInfo.
08.01.01, 2.00 revised (kp) Implement version 2.0 of eg-model.dtd.
20.12.00, 1.50 revised (kp) Beautifications, adjust file formats.
16.04.00, 1.40 revised (kp) Extends from PsObject again.
26.03.00, 1.30 revised (kp) Auto-generation of files when run inside JavaView.
21.03.00, 1.20 revised (kp) Adjusted to validated DTD version 0.91.
25.02.00, 1.10 revised (kp) Superclass changed from PsObject to PsXmlSrc.
11.02.00, 1.00 created (kp)
Author:
Konrad Polthier
See Also:
Serialized Form

Field Summary
static java.lang.String EMPTY_ITEM
           
static java.lang.String FILE_FORMAT_BYU
           
static java.lang.String FILE_FORMAT_EPS
           
static java.lang.String FILE_FORMAT_FE
           
static java.lang.String FILE_FORMAT_GIF
           
static java.lang.String FILE_FORMAT_HTML
           
static java.lang.String FILE_FORMAT_JPG
           
static java.lang.String FILE_FORMAT_JVX
           
static java.lang.String FILE_FORMAT_MGS
           
static java.lang.String FILE_FORMAT_OBJ
           
static java.lang.String FILE_FORMAT_OFF
           
static java.lang.String FILE_FORMAT_POLY
           
static java.lang.String FILE_FORMAT_PS
           
static java.lang.String FILE_FORMAT_SEPARATOR
           
static java.lang.String FILE_FORMAT_TXT
           
static java.lang.String FILE_FORMAT_WRL
           
protected  PsAuthorInfo m_authorInfo
           
protected  boolean[] m_autoGen
           
protected static boolean m_bInsideJavaView
          Flag whether program runs inside JavaView, used to allow auto-generation of files.
protected  PsModelInfo_IP m_dialog
          Dialog displaying submission form.
protected  java.lang.String m_egId
           
protected  java.lang.String m_fileComment
           
protected  java.lang.String[] m_fileFormat
           
protected  java.lang.String[] m_fileName
           
protected  java.lang.String[] m_fileSize
           
protected  PsGeometryInfo m_geometryInfo
           
protected  int m_iDialog
          Flag to check íf dialog has been opened and then closed.
protected  java.lang.String[] m_imageHeight
           
protected  java.lang.String[] m_imageWidth
           
protected static int m_maxNumFiles
           
protected  java.lang.String m_modelName
           
protected  int m_numFiles
           
protected  java.lang.String m_rsrcFile
          Name of resource file, if resource has been parsed from file.
protected  java.lang.String m_title
           
protected  java.lang.String[] m_usage
           
static java.lang.String USAGE_APPLET
           
static java.lang.String USAGE_IMAGE
           
static java.lang.String USAGE_MASTER
           
static java.lang.String USAGE_ORIGINAL
           
static java.lang.String USAGE_OTHER
           
static java.lang.String USAGE_PREVIEW
           
static java.lang.String USAGE_PRINT
           
static java.lang.String USAGE_README
           
 
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
PsModelInfo()
           
 
Method Summary
 PsAuthorInfo getAuthorInfo()
          Get author information.
 int getDialogStatus()
           
 PsGeometryInfo getGeometryInfo()
          Get geometry information.
 java.lang.String getRsrcFile()
          Get resource file name.
 PsXmlSrc getXml()
          Create an XML tree with data from this instance, for example, to print to file.
 boolean hasDialog()
           
 void init()
          Initialize and reset resource.
 boolean read(java.lang.String rsrcFile)
          Read an XML file and create a tree structure of instances of type PsXmlNode.
static void runningInsideJavaView(boolean insideJavaView)
           
 void setAuthorInfo(PsAuthorInfo authorInfo)
          Set author information.
 void setGeometryInfo(PsGeometryInfo geometryInfo)
          Set geometry information.
 void setXml(PsXmlSrc src)
          Fill this instance with data from an XML source, for example, previously read from file.
 void showDialog(boolean modal, PsViewerIf viewer)
           
 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_bInsideJavaView

protected static boolean m_bInsideJavaView
Flag whether program runs inside JavaView, used to allow auto-generation of files.

m_dialog

protected transient PsModelInfo_IP m_dialog
Dialog displaying submission form.

m_iDialog

protected int m_iDialog
Flag to check íf dialog has been opened and then closed. Flag is used in applications to indicate when application should be existed.

m_rsrcFile

protected java.lang.String m_rsrcFile
Name of resource file, if resource has been parsed from file.

USAGE_MASTER

public static final java.lang.String USAGE_MASTER

USAGE_PREVIEW

public static final java.lang.String USAGE_PREVIEW

USAGE_APPLET

public static final java.lang.String USAGE_APPLET

USAGE_IMAGE

public static final java.lang.String USAGE_IMAGE

USAGE_ORIGINAL

public static final java.lang.String USAGE_ORIGINAL

USAGE_OTHER

public static final java.lang.String USAGE_OTHER

USAGE_PRINT

public static final java.lang.String USAGE_PRINT

USAGE_README

public static final java.lang.String USAGE_README

FILE_FORMAT_BYU

public static final java.lang.String FILE_FORMAT_BYU

FILE_FORMAT_JVX

public static final java.lang.String FILE_FORMAT_JVX

FILE_FORMAT_OBJ

public static final java.lang.String FILE_FORMAT_OBJ

FILE_FORMAT_POLY

public static final java.lang.String FILE_FORMAT_POLY

FILE_FORMAT_SEPARATOR

public static final java.lang.String FILE_FORMAT_SEPARATOR

FILE_FORMAT_EPS

public static final java.lang.String FILE_FORMAT_EPS

FILE_FORMAT_PS

public static final java.lang.String FILE_FORMAT_PS

FILE_FORMAT_GIF

public static final java.lang.String FILE_FORMAT_GIF

FILE_FORMAT_JPG

public static final java.lang.String FILE_FORMAT_JPG

FILE_FORMAT_FE

public static final java.lang.String FILE_FORMAT_FE

FILE_FORMAT_MGS

public static final java.lang.String FILE_FORMAT_MGS

FILE_FORMAT_OFF

public static final java.lang.String FILE_FORMAT_OFF

FILE_FORMAT_TXT

public static final java.lang.String FILE_FORMAT_TXT

FILE_FORMAT_HTML

public static final java.lang.String FILE_FORMAT_HTML

FILE_FORMAT_WRL

public static final java.lang.String FILE_FORMAT_WRL

EMPTY_ITEM

public static final java.lang.String EMPTY_ITEM

m_egId

protected java.lang.String m_egId

m_title

protected java.lang.String m_title

m_modelName

protected java.lang.String m_modelName

m_authorInfo

protected PsAuthorInfo m_authorInfo

m_geometryInfo

protected PsGeometryInfo m_geometryInfo

m_maxNumFiles

protected static final int m_maxNumFiles

m_numFiles

protected int m_numFiles

m_autoGen

protected boolean[] m_autoGen

m_usage

protected java.lang.String[] m_usage

m_fileName

protected java.lang.String[] m_fileName

m_fileFormat

protected java.lang.String[] m_fileFormat

m_fileSize

protected java.lang.String[] m_fileSize

m_imageWidth

protected java.lang.String[] m_imageWidth

m_imageHeight

protected java.lang.String[] m_imageHeight

m_fileComment

protected java.lang.String m_fileComment
Constructor Detail

PsModelInfo

public PsModelInfo()
Method Detail

init

public void init()
Initialize and reset resource.
Overrides:
init in class PsObject

runningInsideJavaView

public static final void runningInsideJavaView(boolean insideJavaView)

getRsrcFile

public java.lang.String getRsrcFile()
Get resource file name. Only assigned if file has already been read.
Returns:
name of XML file

getAuthorInfo

public PsAuthorInfo getAuthorInfo()
Get author information.

setAuthorInfo

public void setAuthorInfo(PsAuthorInfo authorInfo)
Set author information.

getGeometryInfo

public PsGeometryInfo getGeometryInfo()
Get geometry information.

setGeometryInfo

public void setGeometryInfo(PsGeometryInfo geometryInfo)
Set geometry information.

read

public boolean read(java.lang.String rsrcFile)
Read an XML file and create a tree structure of instances of type PsXmlNode.
Parameters:
rsrcFile - full name of resource file
Returns:
true if loading was successful

getXml

public PsXmlSrc getXml()
Create an XML tree with data from this instance, for example, to print to file.
Returns:
XML tree filled with data from this instance.

setXml

public void setXml(PsXmlSrc src)
Fill this instance with data from an XML source, for example, previously read from file. At first, this method resets the data structure by calling #init().
Parameters:
src - XML source used to fill this instance with data.

hasDialog

public boolean hasDialog()

getDialogStatus

public int getDialogStatus()

showDialog

public void showDialog(boolean modal,
                       PsViewerIf viewer)

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)

JavaView® v2.00.008

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