jvx.loader
Class PsExportInfo
- java.lang.Object
-
- jv.object.PsObject
-
- jvx.project.PjWorkshop
-
- jvx.loader.PsExportInfo
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, PsUpdateIf, PjWorkshopIf
public class PsExportInfo extends PjWorkshop
Store option information used when saving a geometry as file or image. When successfully saved a geometry file then the name of the file will appear as title of the current display frame.- See Also:
- Serialized Form
- Author:
- Konrad Polthier
- Version:
- 24.02.18, 3.22 revised (kp) Add XYZ format.
21.09.09, 3.21 revised (fk) Add PNG format.
01.11.05, 3.20 revised (kp) New VAL export added for generation of HTML validation page.
18.08.03, 3.10 revised (kp) Implement saving of compressed files and conversion to float.
19.03.03, 3.00 revised (kp) Author and geometry information implemented.
05.03.03, 2.00 revised (kp) Superclass changed to PjWorkshop from PsObject.
12.02.03, 1.10 revised (kp) Adjust title of display frame.
12.07.02, 1.00 created (kp)
-
-
Field Summary
-
Fields inherited from class jv.object.PsObject
HAS_BOUNDARY_PANEL, HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS
-
Fields inherited from interface jv.project.PjWorkshopIf
MODE_BUG, MODE_STANDARD, MODE_VALIDATE
-
-
Constructor Summary
Constructors Constructor and Description PsExportInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description PsAuthorInfogetAuthorInfo()Get author information.java.lang.StringgetBaseFileName()Get base file name of saved file.int[]getDataFields()Get array of all data fields which are currently offered to export.java.lang.StringgetDataName(int format)Get 3-character extension of a given file format.java.lang.StringgetDirectory()Get directory of saved file.int[]getExportedDataFields()Get array of all data fields which are currently selected for export.int[]getExportedFiles()Get array of files which are enabled for or have been exported by a user.java.lang.StringgetFileExtension(int format)Get 3-character extension of a given file format.PsGeometryInfogetGeometryInfo()Get geometry information.int[]getGeomFormat()Get array of all geometry file formats which are currently offered to export.int[]getImageFormat()Get array of all geometry file formats which are currently offered to export.java.lang.StringgetImageSuffix()Get additional suffix of image files.intgetImageType()Get size type of image, like IMAGE_SIZE_SCRN.PsJvzConfiggetJvzConfig()Get configuration of JVZ compression.voidinit()Initialize and reset resource.booleanisEnabledCompress()Get flag if geometry files shall be compressed in ZIP format.booleanisEnabledConfigDisplay()Get flag if settings of display inspector may be overwritten.booleanisEnabledSaveAsFloat()Get flag if double numbers are converted to floats when saving.voidok()Export geometry or scene to specified files.voidsetAuthorInfo(PsAuthorInfo authorInfo)Set author information.voidsetBaseFileName(java.lang.String baseFileName)Set base file name of saved file which have been exported by a user.voidsetDataFields(int[] dataFormat)Set array of all geometry file formats to be offered to export.voidsetDirectory(java.lang.String baseDirectory)Set directory of saved file which have been exported by a user.voidsetEnabledCompress(boolean flag)Set flag if geometry files shall be compressed in ZIP format.voidsetEnabledConfigDisplay(boolean bConfigImage)Set flag if settings of display inspector may be overwritten.voidsetEnabledSaveAsFloat(boolean flag)Set flag if double numbers are converted to floats when saving.voidsetExportedDataFields(int[] fields)Set array of all data fields which are currently selected for export.voidsetExportedFiles(int[] exportedFile)Set array of files which are enabled for or have been exported by a user.voidsetGeometryInfo(PsGeometryInfo geometryInfo)Set geometry information.voidsetGeomFormat(int[] geomFormat)Set array of all geometry file formats to be offered to export.voidsetImageFormat(int[] imageFormat)Set array of all geometry file formats to be offered to export.voidsetImageSuffix(java.lang.String imageSuffix)Set additional suffix of image files.voidsetImageType(int type)Set size type of image, like IMAGE_SIZE_SCRN.voidsetJvzConfig(PsJvzConfig jvzConfig)Set configuration of JVZ compression.voidsetMode(int mode)Sets the mode in which this workshop runs.voidsetViewer(PvViewerIf viewer)Set the viewer and ask for recent geometry file.booleanupdate(java.lang.Object event)Updates the geometry if this workshop has changed, i.e. if the event isthisornull.-
Methods inherited from class jvx.project.PjWorkshop
cancel, close, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, isModal, isStandalone, removeGeometry, reset, setDisplay, setDisplays, setGeometry, setModal, setStandalone
-
Methods inherited from class jv.object.PsObject
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, toString, updatePanels
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jv.object.PsUpdateIf
getFather, getName, setParent
-
-
-
-
Field Detail
-
FILE_SIZE_USER
public static final int FILE_SIZE_USER
- See Also:
- Constant Field Values
-
FILE_SIZE_SCRN
public static final int FILE_SIZE_SCRN
- See Also:
- Constant Field Values
-
FILE_SIZE_PAL
public static final int FILE_SIZE_PAL
- See Also:
- Constant Field Values
-
FILE_SIZE_NTSC
public static final int FILE_SIZE_NTSC
- See Also:
- Constant Field Values
-
FILE_SIZE_MED
public static final int FILE_SIZE_MED
- See Also:
- Constant Field Values
-
FILE_SIZE_BOOK
public static final int FILE_SIZE_BOOK
- See Also:
- Constant Field Values
-
FILE_SIZE_SGL
public static final int FILE_SIZE_SGL
- See Also:
- Constant Field Values
-
FILE_SIZE_SML
public static final int FILE_SIZE_SML
- See Also:
- Constant Field Values
-
FILE_SIZE_TINY
public static final int FILE_SIZE_TINY
- See Also:
- Constant Field Values
-
FILE_FORMAT_BYU
public static final int FILE_FORMAT_BYU
- See Also:
- Constant Field Values
-
FILE_FORMAT_DXF
public static final int FILE_FORMAT_DXF
- See Also:
- Constant Field Values
-
FILE_FORMAT_FE
public static final int FILE_FORMAT_FE
- See Also:
- Constant Field Values
-
FILE_FORMAT_JVX
public static final int FILE_FORMAT_JVX
- See Also:
- Constant Field Values
-
FILE_FORMAT_JVZ
public static final int FILE_FORMAT_JVZ
- See Also:
- Constant Field Values
-
FILE_FORMAT_MA
public static final int FILE_FORMAT_MA
- See Also:
- Constant Field Values
-
FILE_FORMAT_MGS
public static final int FILE_FORMAT_MGS
- See Also:
- Constant Field Values
-
FILE_FORMAT_MPL
public static final int FILE_FORMAT_MPL
- See Also:
- Constant Field Values
-
FILE_FORMAT_OBJ
public static final int FILE_FORMAT_OBJ
- See Also:
- Constant Field Values
-
FILE_FORMAT_OFF
public static final int FILE_FORMAT_OFF
- See Also:
- Constant Field Values
-
FILE_FORMAT_STL
public static final int FILE_FORMAT_STL
- See Also:
- Constant Field Values
-
FILE_FORMAT_U3D
public static final int FILE_FORMAT_U3D
- See Also:
- Constant Field Values
-
FILE_FORMAT_WRL
public static final int FILE_FORMAT_WRL
- See Also:
- Constant Field Values
-
FILE_FORMAT_XYZ
public static final int FILE_FORMAT_XYZ
- See Also:
- Constant Field Values
-
FILE_FORMAT_GIF
public static final int FILE_FORMAT_GIF
- See Also:
- Constant Field Values
-
FILE_FORMAT_JPG
public static final int FILE_FORMAT_JPG
- See Also:
- Constant Field Values
-
FILE_FORMAT_PNG
public static final int FILE_FORMAT_PNG
- See Also:
- Constant Field Values
-
FILE_FORMAT_PPM
public static final int FILE_FORMAT_PPM
- See Also:
- Constant Field Values
-
FILE_FORMAT_EPS
public static final int FILE_FORMAT_EPS
- See Also:
- Constant Field Values
-
FILE_FORMAT_PS
public static final int FILE_FORMAT_PS
- See Also:
- Constant Field Values
-
FILE_FORMAT_JVD
public static final int FILE_FORMAT_JVD
- See Also:
- Constant Field Values
-
GEOM_DATA_HEADER
public static final int GEOM_DATA_HEADER
- See Also:
- Constant Field Values
-
GEOM_DATA_AUTHOR
public static final int GEOM_DATA_AUTHOR
- See Also:
- Constant Field Values
-
GEOM_DATA_INFO
public static final int GEOM_DATA_INFO
- See Also:
- Constant Field Values
-
GEOM_DATA_NORMALS
public static final int GEOM_DATA_NORMALS
- See Also:
- Constant Field Values
-
GEOM_DATA_COLORS
public static final int GEOM_DATA_COLORS
- See Also:
- Constant Field Values
-
GEOM_DATA_TEXTURE
public static final int GEOM_DATA_TEXTURE
- See Also:
- Constant Field Values
-
GEOM_DATA_VECTORS
public static final int GEOM_DATA_VECTORS
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init()
Initialize and reset resource.- Overrides:
initin classPjWorkshop
-
setViewer
public void setViewer(PvViewerIf viewer)
Set the viewer and ask for recent geometry file.- Specified by:
setViewerin interfacePjWorkshopIf- Overrides:
setViewerin classPjWorkshop- Since:
- JavaView 2.53
- Version:
- 05.03.03, 1.00 created (kp)
-
setMode
public void setMode(int mode)
Sets the mode in which this workshop runs. Allows to select a debugging type mode.- Specified by:
setModein interfacePjWorkshopIf- Overrides:
setModein classPjWorkshop- Parameters:
mode- either MODE_STANDARD for standard mode, or MODE_BUG for debugging operations.- Since:
- JavaView 3.97.005
- See Also:
PjWorkshopIf.MODE_STANDARD
-
getImageType
public int getImageType()
Get size type of image, like IMAGE_SIZE_SCRN.
-
setImageType
public void setImageType(int type)
Set size type of image, like IMAGE_SIZE_SCRN.
-
getFileExtension
public java.lang.String getFileExtension(int format)
Get 3-character extension of a given file format.
-
getJvzConfig
public PsJvzConfig getJvzConfig()
Get configuration of JVZ compression.
-
setJvzConfig
public void setJvzConfig(PsJvzConfig jvzConfig)
Set configuration of JVZ compression.
-
isEnabledCompress
public boolean isEnabledCompress()
Get flag if geometry files shall be compressed in ZIP format.
-
setEnabledCompress
public void setEnabledCompress(boolean flag)
Set flag if geometry files shall be compressed in ZIP format.
-
isEnabledSaveAsFloat
public boolean isEnabledSaveAsFloat()
Get flag if double numbers are converted to floats when saving.
-
setEnabledSaveAsFloat
public void setEnabledSaveAsFloat(boolean flag)
Set flag if double numbers are converted to floats when saving.
-
isEnabledConfigDisplay
public boolean isEnabledConfigDisplay()
Get flag if settings of display inspector may be overwritten.
-
setEnabledConfigDisplay
public void setEnabledConfigDisplay(boolean bConfigImage)
Set flag if settings of display inspector may be overwritten.
-
getBaseFileName
public java.lang.String getBaseFileName()
Get base file name of saved file.
-
setBaseFileName
public void setBaseFileName(java.lang.String baseFileName)
Set base file name of saved file which have been exported by a user. The filename should not contain any dot '.',otherwise anything behind and including the first dot is ignored.
-
getDirectory
public java.lang.String getDirectory()
Get directory of saved file.
-
setDirectory
public void setDirectory(java.lang.String baseDirectory)
Set directory of saved file which have been exported by a user.
-
getImageSuffix
public java.lang.String getImageSuffix()
Get additional suffix of image files.
-
setImageSuffix
public void setImageSuffix(java.lang.String imageSuffix)
Set additional suffix of image files.
-
getExportedFiles
public int[] getExportedFiles()
Get array of files which are enabled for or have been exported by a user.
-
setExportedFiles
public void setExportedFiles(int[] exportedFile)
Set array of files which are enabled for or have been exported by a user.
-
getDataName
public java.lang.String getDataName(int format)
Get 3-character extension of a given file format.
-
getExportedDataFields
public int[] getExportedDataFields()
Get array of all data fields which are currently selected for export.
-
setExportedDataFields
public void setExportedDataFields(int[] fields)
Set array of all data fields which are currently selected for export.
-
getDataFields
public int[] getDataFields()
Get array of all data fields which are currently offered to export.
-
setDataFields
public void setDataFields(int[] dataFormat)
Set array of all geometry file formats to be offered to export.
-
getGeomFormat
public int[] getGeomFormat()
Get array of all geometry file formats which are currently offered to export.
-
setGeomFormat
public void setGeomFormat(int[] geomFormat)
Set array of all geometry file formats to be offered to export.
-
getImageFormat
public int[] getImageFormat()
Get array of all geometry file formats which are currently offered to export.
-
setImageFormat
public void setImageFormat(int[] imageFormat)
Set array of all geometry file formats to be offered to export.
-
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.
-
update
public boolean update(java.lang.Object event)
Description copied from class:PjWorkshopUpdates the geometry if this workshop has changed, i.e. if the event isthisornull. Also propagates update() to superclass with the original argument event.Some subclasses may register themselves as update listener of the geometry of this workshop. In order to prevent an update loop, this method safely uses isUpdateSender() when updating the geometry.
- Specified by:
updatein interfacePsUpdateIf- Overrides:
updatein classPjWorkshop- Parameters:
event- sender of this update.- Returns:
- true if update was correctly handled by superclass.
- See Also:
PsObject.setParent(PsUpdateIf),PsObject.getFather(),PsObject.addUpdateListener(PsUpdateIf)
-
ok
public void ok()
Export geometry or scene to specified files.- Overrides:
okin classPjWorkshop- Version:
- 19.10.17, 1.11 revised (kp) File name added to frame title only if file export was successful.
13.08.03, 1.10 revised (kp) Author information added to display options.
-
-
"