View class

The View class allows you to control the view and plotting modes in D3PLOT. More...

The D3PLOT JavaScript API provides many class constants, properties and methods. For Arup to be able to extend and enhance the API in the future any constant, property or method names beginning with a lowercase or uppercase letter are reserved.
If you need to add your own properties or methods to one of the existing classes then to avoid any potential future conflict you should ensure that the name begins with either an underscore (_) or a dollar sign ($) or the name is prefixed with your own unique identifier.
For example if company 'ABC' need to add a property called 'example' then to avoid any potential future conflict use one of:

Class functions

View constants

Constants for Show

Name Description
View.ISO Isometric projection
View.XY XY axis projection
View.XZ XZ axis projection
View.YZ YZ axis projection

Constants for plotting mode

Name Description
View.CURRENT current mode
View.HIDDEN Hidden line
View.SHADED Shaded view
View.WIRE Wireframe

Detailed Description

The View class gives you access to the different plotting modes and views. See the documentation below for more details.

Details of functions

Ac() [static]

Description

Autoscales the view

Arguments

No arguments

Returns

No return value

Example

To autoscale

View.Ac();


Ct() [static]

Description

Does a contour plot

Arguments

No arguments

Returns

No return value

Example

To do a contour plot

View.Ct();


Hi() [static]

Description

Does a Hidden line plot

Arguments

No arguments

Returns

No return value

Example

To do a hidden line plot

View.Hi();


Li() [static]

Description

Does a line (wireframe) plot

Arguments

No arguments

Returns

No return value

Example

To do a line plot

View.Li();


Redraw() [static]

Description

Redraws the plot using the current plot mode.

Arguments

No arguments

Returns

No return value

Example

To redraw

View.Redraw();


Sh() [static]

Description

Does a shaded plot

Arguments

No arguments

Returns

No return value

Example

To do a shaded plot

View.Sh();


Show(View type[constant]) [static]

Description

Redraws using one of the standard views

Arguments

  • View type (constant)

    The view to show. Can be +/-View.XY, +/-View.YZ, +/-View.XZ or +/-View.ISO

    Returns

    No return value

    Example

    To do an isometric view from the negative direction:

    View.Show(-View.ISO);


    Si() [static]

    Description

    Does a shaded image contour plot

    Arguments

    No arguments

    Returns

    No return value

    Example

    To do a shaded image contour plot

    View.Si();


    Vec() [static]

    Description

    Does a vector plot

    Arguments

    No arguments

    Returns

    No return value

    Example

    To do a vector plot

    View.Vec();