Documentation of 'jvx.loader.PsExportInfo' Java class
PsExportInfo ("JavaView Reference Manual")
"JavaView? v5.03.003"
jvx.loader

Class 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)
    • Constructor Detail

      • PsExportInfo

        public PsExportInfo()
    • Method Detail

      • init

        public void init()
        Initialize and reset resource.
        Overrides:
        init in class PjWorkshop
      • setViewer

        public void setViewer(PvViewerIf viewer)
        Set the viewer and ask for recent geometry file.
        Specified by:
        setViewer in interface PjWorkshopIf
        Overrides:
        setViewer in class PjWorkshop
        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:
        setMode in interface PjWorkshopIf
        Overrides:
        setMode in class PjWorkshop
        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: PjWorkshop
        Updates the geometry if this workshop has changed, i.e. if the event is 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.

        Specified by:
        update in interface PsUpdateIf
        Overrides:
        update in class PjWorkshop
        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:
        ok in class PjWorkshop
        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.
"JavaView? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

Ads help maintain this website.