public class PsExportInfo extends PjWorkshop
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
MODE_BUG, MODE_STANDARD, MODE_VALIDATE
Constructor and Description |
---|
PsExportInfo() |
Modifier and Type | Method and Description |
---|---|
PsAuthorInfo |
getAuthorInfo()
Get author information.
|
java.lang.String |
getBaseFileName()
Get base file name of saved file.
|
int[] |
getDataFields()
Get array of all data fields which are currently offered to export.
|
java.lang.String |
getDataName(int format)
Get 3-character extension of a given file format.
|
java.lang.String |
getDirectory()
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.String |
getFileExtension(int format)
Get 3-character extension of a given file format.
|
PsGeometryInfo |
getGeometryInfo()
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.String |
getImageSuffix()
Get additional suffix of image files.
|
int |
getImageType()
Get size type of image, like IMAGE_SIZE_SCRN.
|
PsJvzConfig |
getJvzConfig()
Get configuration of JVZ compression.
|
void |
init()
Initialize and reset resource.
|
boolean |
isEnabledCompress()
Get flag if geometry files shall be compressed in ZIP format.
|
boolean |
isEnabledConfigDisplay()
Get flag if settings of display inspector may be overwritten.
|
boolean |
isEnabledSaveAsFloat()
Get flag if double numbers are converted to floats when saving.
|
void |
ok()
Export geometry or scene to specified files.
|
void |
setAuthorInfo(PsAuthorInfo authorInfo)
Set author information.
|
void |
setBaseFileName(java.lang.String baseFileName)
Set base file name of saved file which have been exported by a user.
|
void |
setDataFields(int[] dataFormat)
Set array of all geometry file formats to be offered to export.
|
void |
setDirectory(java.lang.String baseDirectory)
Set directory of saved file which have been exported by a user.
|
void |
setEnabledCompress(boolean flag)
Set flag if geometry files shall be compressed in ZIP format.
|
void |
setEnabledConfigDisplay(boolean bConfigImage)
Set flag if settings of display inspector may be overwritten.
|
void |
setEnabledSaveAsFloat(boolean flag)
Set flag if double numbers are converted to floats when saving.
|
void |
setExportedDataFields(int[] fields)
Set array of all data fields which are currently selected for export.
|
void |
setExportedFiles(int[] exportedFile)
Set array of files which are enabled for or have been exported by a user.
|
void |
setGeometryInfo(PsGeometryInfo geometryInfo)
Set geometry information.
|
void |
setGeomFormat(int[] geomFormat)
Set array of all geometry file formats to be offered to export.
|
void |
setImageFormat(int[] imageFormat)
Set array of all geometry file formats to be offered to export.
|
void |
setImageSuffix(java.lang.String imageSuffix)
Set additional suffix of image files.
|
void |
setImageType(int type)
Set size type of image, like IMAGE_SIZE_SCRN.
|
void |
setJvzConfig(PsJvzConfig jvzConfig)
Set configuration of JVZ compression.
|
void |
setMode(int mode)
Sets the mode in which this workshop runs.
|
void |
setViewer(PvViewerIf viewer)
Set the viewer and ask for recent geometry file.
|
boolean |
update(java.lang.Object event)
Updates the geometry if this workshop has changed,
i.e. if the event is
this or null . |
cancel, close, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, isModal, isStandalone, openDialog, removeGeometry, reset, setDisplay, setDisplays, setGeometry, setModal, setStandalone
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFather, getName, setParent
public static final int FILE_SIZE_USER
public static final int FILE_SIZE_SCRN
public static final int FILE_SIZE_PAL
public static final int FILE_SIZE_NTSC
public static final int FILE_SIZE_MED
public static final int FILE_SIZE_BOOK
public static final int FILE_SIZE_SGL
public static final int FILE_SIZE_SML
public static final int FILE_SIZE_TINY
public static final int FILE_FORMAT_BYU
public static final int FILE_FORMAT_DXF
public static final int FILE_FORMAT_FE
public static final int FILE_FORMAT_JVX
public static final int FILE_FORMAT_JVZ
public static final int FILE_FORMAT_MA
public static final int FILE_FORMAT_MGS
public static final int FILE_FORMAT_MPL
public static final int FILE_FORMAT_OBJ
public static final int FILE_FORMAT_OFF
public static final int FILE_FORMAT_STL
public static final int FILE_FORMAT_U3D
public static final int FILE_FORMAT_WRL
public static final int FILE_FORMAT_GIF
public static final int FILE_FORMAT_JPG
public static final int FILE_FORMAT_PNG
public static final int FILE_FORMAT_PPM
public static final int FILE_FORMAT_EPS
public static final int FILE_FORMAT_PS
public static final int FILE_FORMAT_JVD
public static final int GEOM_DATA_HEADER
public static final int GEOM_DATA_AUTHOR
public static final int GEOM_DATA_INFO
public static final int GEOM_DATA_NORMALS
public static final int GEOM_DATA_COLORS
public static final int GEOM_DATA_TEXTURE
public static final int GEOM_DATA_VECTORS
public void init()
init
in class PjWorkshop
public void setViewer(PvViewerIf viewer)
setViewer
in interface PjWorkshopIf
setViewer
in class PjWorkshop
public void setMode(int mode)
setMode
in interface PjWorkshopIf
setMode
in class PjWorkshop
mode
- either MODE_STANDARD for standard mode, or MODE_BUG for debugging operations.PjWorkshopIf.MODE_STANDARD
public int getImageType()
public void setImageType(int type)
public java.lang.String getFileExtension(int format)
public PsJvzConfig getJvzConfig()
public void setJvzConfig(PsJvzConfig jvzConfig)
public boolean isEnabledCompress()
public void setEnabledCompress(boolean flag)
public boolean isEnabledSaveAsFloat()
public void setEnabledSaveAsFloat(boolean flag)
public boolean isEnabledConfigDisplay()
public void setEnabledConfigDisplay(boolean bConfigImage)
public java.lang.String getBaseFileName()
public void setBaseFileName(java.lang.String baseFileName)
public java.lang.String getDirectory()
public void setDirectory(java.lang.String baseDirectory)
public java.lang.String getImageSuffix()
public void setImageSuffix(java.lang.String imageSuffix)
public int[] getExportedFiles()
public void setExportedFiles(int[] exportedFile)
public java.lang.String getDataName(int format)
public int[] getExportedDataFields()
public void setExportedDataFields(int[] fields)
public int[] getDataFields()
public void setDataFields(int[] dataFormat)
public int[] getGeomFormat()
public void setGeomFormat(int[] geomFormat)
public int[] getImageFormat()
public void setImageFormat(int[] imageFormat)
public PsAuthorInfo getAuthorInfo()
public void setAuthorInfo(PsAuthorInfo authorInfo)
public PsGeometryInfo getGeometryInfo()
public void setGeometryInfo(PsGeometryInfo geometryInfo)
public boolean update(java.lang.Object event)
PjWorkshop
this
or null
.
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.
update
in interface PsUpdateIf
update
in class PjWorkshop
event
- sender of this update.PsObject.setParent(PsUpdateIf)
,
PsObject.getFather()
,
PsObject.addUpdateListener(PsUpdateIf)
public void ok()
ok
in class PjWorkshop
"