Skip to content
Snippets Groups Projects
Select Git revision
  • 48c8d6c23010fc73d62f44e366901f08680d08da
  • master default protected
  • blender-v3.6-release
  • main
  • blender-v4.1-release
  • blender-v4.0-release
  • blender-v3.3-release
  • asset-shelf
  • blender-v3.5-release
  • brush-assets-project
  • blender-v2.93-release
  • blender-v3.4-release
  • xr-dev
  • bholodeck-v3.3
  • blender-v3.2-release
  • temp-xr-tracker
  • blender-v3.1-release
  • screenshots-manual
  • gltf_vtree
  • blender-v2.83-release
  • blender-v3.0-release
  • v3.6.18
  • v3.6.19
  • v3.6.20
  • v3.6.21
  • v3.6.22
  • v3.6.23
  • v4.1.1
  • v4.1.0
  • v3.6.10
  • v3.6.11
  • v3.6.12
  • v3.6.13
  • v3.6.14
  • v3.6.15
  • v3.6.16
  • v3.6.17
  • v3.6.9
  • v3.3.16
  • v3.6.8
  • v3.3.15
41 results

animation_animall.py

Blame
  • InputFileInfo.java 1.79 KiB
    package azgracompress.cli;
    
    import azgracompress.data.V2i;
    import azgracompress.data.V3i;
    
    /**
     * Information about the input file.
     */
    public class InputFileInfo {
        /**
         * Input file path.
         */
        private final String filePath;
    
        private boolean isRAW = true;
    
        private V3i dimension;
    
        private boolean planeIndexSet = false;
        private int planeIndex;
    
        private boolean planeRangeSet = false;
        private V2i planeRange;
    
        public InputFileInfo(final String filePath) {
            this.filePath = filePath;
        }
    
        /**
         * Get number of selected planes to be compressed.
         *
         * @return Number of planes for compression.
         */
        public int getNumberOfPlanes() {
            if (planeIndexSet) {
                return 1;
            } else if (planeRangeSet) {
                return ((planeRange.getY() + 1) - planeRange.getX());
            } else {
                return dimension.getZ();
            }
        }
    
        public void setDimension(final V3i dimension) {
            this.dimension = dimension;
        }
    
        public void setPlaneIndex(final int planeIndex) {
            this.planeIndexSet = true;
            this.planeIndex = planeIndex;
        }
    
        public void setPlaneRange(final V2i planeRange) {
            this.planeRangeSet = true;
            this.planeRange = planeRange;
        }
    
        public String getFilePath() {
            return filePath;
        }
    
        public V3i getDimensions() {
            return dimension;
        }
    
        public boolean isPlaneIndexSet() {
            return planeIndexSet;
        }
    
        public int getPlaneIndex() {
            return planeIndex;
        }
    
        public boolean isPlaneRangeSet() {
            return planeRangeSet;
        }
    
        public V2i getPlaneRange() {
            return planeRange;
        }
    
        public boolean isRAW() {
            return isRAW;
        }
    
        public void setIsRaw(boolean RAW) {
            isRAW = RAW;
        }
    }