com.groupdocs.viewer.converter.options

Class CadOptions



  • public class CadOptions
    extends Object

    The CAD documents rendering options.

    Version:
    17.5.0
    Author:
    GroupDocs.Viewer Team
    • Constructor Summary

      Constructors 
      Constructor and Description
      CadOptions()
      Initializes a new instance of the CadOptions class.
    • Constructor Detail

      • CadOptions

        public CadOptions()

        Initializes a new instance of the CadOptions class.

    • Method Detail

      • getScaleFactor

        public float getScaleFactor()

        The scale factor affects the size of an output document.

        Returns:
        a float.
      • setScaleFactor

        public void setScaleFactor(float value)

        The scale factor affects the size of an output document.

        Parameters:
        value - a float.
      • getWidth

        public int getWidth()

        The width of the render result in pixels.

        Returns:
        a int.
      • setWidth

        public void setWidth(int value)

        The width of the render result in pixels.

        Parameters:
        value - a int.
      • getHeight

        public int getHeight()

        The height of the render result in pixels.

        Returns:
        a int.
      • setHeight

        public void setHeight(int value)

        The height of the render result in pixels.

        Parameters:
        value - a int.
      • getRenderLayouts

        public boolean getRenderLayouts()

        Indicates whether layouts from CAD document should be rendered. Default value is false. When render layouts enabled, Model and all non-empty layouts contained in the CAD document will be rendered. Otherwise only Model is rendered.

        Returns:
        a boolean.
      • setRenderLayouts

        public void setRenderLayouts(boolean value)

        Indicates whether layouts from CAD document should be rendered. Default value is false. When render layouts enabled, Model and all non-empty layouts contained in the CAD document will be rendered. Otherwise only Model is rendered.

        Parameters:
        value - a boolean.
      • getLayoutName

        public String getLayoutName()

        The name of the specific layout to render.

        Returns:
        a String object.
      • setLayoutName

        public void setLayoutName(String value)

        The name of the specific layout to render.

        Parameters:
        value - a String object.
      • getCadRenderSizingType

        public int getCadRenderSizingType()

        Indicates how rendering result size should be calculated.

        Returns:
        a int.