LESM
Class Draw

LESM.Draw
Direct Known Subclasses:
Draw_Frame2D, Draw_Frame3D, Draw_Grillage, Draw_Truss2D, Draw_Truss3D

public abstract class Draw

Abstract super-class that generically specifies a drawing object for plotting graphical entities in the Graphical User Interface (GUI) of the LESM program


Field Summary
(package private)  double az
          Azimuth of camera viewpoint
(package private)  Drv drv
          Handle to an object of the Drv class
(package private)  double elev
          Elevation of camera viewpoint
(package private)  double size
          Drawing size parameter
 
Method Summary
static void arrow2D(double x, double y, double l, double h, double B, double ang, double[] c)
          Plots a 2D arrow with defined beggining coordinates, length, arrowhead height, arrowhead base, orientation, and color
static void arrow3D(double x, double y, double z, double l, double h, double B, char dir, double[] c)
          Plots a 3D arrow with defined beggining coordinates, length, arrowhead height, arrowhead base, orientation, and color
abstract  void axialForce(double scale)
          Draws resulting axial force diagram on a given scale
abstract  void axialScaleFactor()
          Computes axial force diagram scale factor value
abstract  void bendingMoment_XY(double scale)
          Draws resulting bending moment diagram in XY plane on a given scale
abstract  void bendingMoment_XZ(double scale)
          Draws resulting bending moment diagram in XZ plane on a given scale
abstract  void bendingMomentScaleFactor_XY()
          Computes bending moment diagram scale factor value in XY plane
abstract  void bendingMomentScaleFactor_XZ()
          Computes bending moment diagram scale factor value in XZ plane
static void circle(double x, double y, double r, double[] c)
          Plots a circle with defined center coordinates, radius and color
 void clean()
          Destructor method
static double[] coordTransform2D(double xi, double yi, double dx, double dy, double ang)
          Transforms coordinate components from an original 2D axis system to a new 2D axis system subjected to a translation and rotation
 double[] coordTransform3D(double x, double y, double z, double dx, double dy, double dz, int e)
          Transforms coordinate components from an original 3D axis system to a new 3D axis system subjected to a translation and rotation
static void cube(double x, double y, double z, double S, double[] c)
          Plots a cube with defined center coordinates, side length and color
abstract  void deformConfig(double scale)
          Draws structure deformed configuration on a given scale
abstract  void deformScaleFactor()
          Computes deformed configuration scale factor
 Draw Draw()
          Constructor method
abstract  void elementID()
          Plots ID number of elements
abstract  void elementOrientation()
          Draws element orientation indication from inital to final node
abstract  void elements()
          Draws elements with hinged or continuous ends
abstract  void elemLoads()
          Draws element distributed loads (uniform and linear)
abstract  void elemLoadsScaleFactor()
          Computes element loads scale factor
abstract  void model()
          Draws structure model with nodes, elements, supports and hinges
static void moment2D(double x, double y, double r, char dir, double[] c)
          Plots an out-of-plane moment symbol with defined center coordinates, radius, orientation, and color
static void moment3D(double x, double y, double z, double l, double h, double B, char dir, double c)
          Plots a 3D moment symbol with defined beggining coordinates, length, arrowhead height, arrowhead base, orientation, and color
abstract  void nodalLoads()
          Draws applied nodal loads and moments
abstract  void nodalPrescDispl()
          Draws nodal prescribed displacement representation
abstract  void nodeID()
          Plots ID number of nodes
abstract  void nodes()
          Draws nodal marks with support conditions
static void pyramid(double X, double Y, double Z, double h, double B, char dir, double[] c)
          Plots a pyramid with defined apex coordinates, height, base, orientaion, and color
abstract  void reactions()
          Draws reactions indication next to nodal supports
abstract  void setLimits()
          Sets axes limits according to model dimensions
 void setSize()
          Sets viewpoint position and computes drawing size parameter according to model dimensions
abstract  void shearForce_XY(double scale)
          Draws resulting shear force diagram in XY plane on a given scale
abstract  void shearForce_XZ(double scale)
          Draws resulting shear force diagram in XZ plane on a given scale
abstract  void shearScaleFactor_XY()
          Computes shear force diagram scale factor value in XY plane
abstract  void shearScaleFactor_XZ()
          Computes shear force diagram scale factor value in XZ plane
static void spear3D(double x, double y, double z, double l, double h, double B, char dir, double[] c, int e)
          Plots a 3D arrow in the direction of any element local axis.
static void sphere(double x, double y, double z, double r)
          Plots a sphere with defined center coordinates and radius
static void square(double x, double y, double S, double[] c)
          Plots a square with defined center coordinates, side length and color
abstract  void thermalLoads()
          Draws thermal load representation on elements
abstract  void torsionMoment()
          Draws resulting torsion moment diagram
static void triangle(double x, double y, double h, double B, double ang, double[] c)
          Plots a triangle with defined top coordinates, height, base, orientation, and color
 

Field Detail

drv

Drv drv
Handle to an object of the Drv class


size

double size
Drawing size parameter


az

double az
Azimuth of camera viewpoint


elev

double elev
Elevation of camera viewpoint

Method Detail

Draw

public Draw Draw()
Constructor method


circle

public static void circle(double x,
                          double y,
                          double r,
                          double[] c)
Plots a circle with defined center coordinates, radius and color


sphere

public static void sphere(double x,
                          double y,
                          double z,
                          double r)
Plots a sphere with defined center coordinates and radius


square

public static void square(double x,
                          double y,
                          double S,
                          double[] c)
Plots a square with defined center coordinates, side length and color


cube

public static void cube(double x,
                        double y,
                        double z,
                        double S,
                        double[] c)
Plots a cube with defined center coordinates, side length and color


triangle

public static void triangle(double x,
                            double y,
                            double h,
                            double B,
                            double ang,
                            double[] c)
Plots a triangle with defined top coordinates, height, base, orientation, and color


pyramid

public static void pyramid(double X,
                           double Y,
                           double Z,
                           double h,
                           double B,
                           char dir,
                           double[] c)
Plots a pyramid with defined apex coordinates, height, base, orientaion, and color


arrow2D

public static void arrow2D(double x,
                           double y,
                           double l,
                           double h,
                           double B,
                           double ang,
                           double[] c)
Plots a 2D arrow with defined beggining coordinates, length, arrowhead height, arrowhead base, orientation, and color


arrow3D

public static void arrow3D(double x,
                           double y,
                           double z,
                           double l,
                           double h,
                           double B,
                           char dir,
                           double[] c)
Plots a 3D arrow with defined beggining coordinates, length, arrowhead height, arrowhead base, orientation, and color


spear3D

public static void spear3D(double x,
                           double y,
                           double z,
                           double l,
                           double h,
                           double B,
                           char dir,
                           double[] c,
                           int e)
Plots a 3D arrow in the direction of any element local axis.


moment2D

public static void moment2D(double x,
                            double y,
                            double r,
                            char dir,
                            double[] c)
Plots an out-of-plane moment symbol with defined center coordinates, radius, orientation, and color


moment3D

public static void moment3D(double x,
                            double y,
                            double z,
                            double l,
                            double h,
                            double B,
                            char dir,
                            double c)
Plots a 3D moment symbol with defined beggining coordinates, length, arrowhead height, arrowhead base, orientation, and color


setLimits

public abstract void setLimits()
Sets axes limits according to model dimensions


model

public abstract void model()
Draws structure model with nodes, elements, supports and hinges


elements

public abstract void elements()
Draws elements with hinged or continuous ends


nodes

public abstract void nodes()
Draws nodal marks with support conditions


elemLoadsScaleFactor

public abstract void elemLoadsScaleFactor()
Computes element loads scale factor


elemLoads

public abstract void elemLoads()
Draws element distributed loads (uniform and linear)


nodalLoads

public abstract void nodalLoads()
Draws applied nodal loads and moments


nodalPrescDispl

public abstract void nodalPrescDispl()
Draws nodal prescribed displacement representation


thermalLoads

public abstract void thermalLoads()
Draws thermal load representation on elements


nodeID

public abstract void nodeID()
Plots ID number of nodes


elementID

public abstract void elementID()
Plots ID number of elements


elementOrientation

public abstract void elementOrientation()
Draws element orientation indication from inital to final node


deformScaleFactor

public abstract void deformScaleFactor()
Computes deformed configuration scale factor


deformConfig

public abstract void deformConfig(double scale)
Draws structure deformed configuration on a given scale


axialScaleFactor

public abstract void axialScaleFactor()
Computes axial force diagram scale factor value


axialForce

public abstract void axialForce(double scale)
Draws resulting axial force diagram on a given scale


torsionMoment

public abstract void torsionMoment()
Draws resulting torsion moment diagram


shearScaleFactor_XY

public abstract void shearScaleFactor_XY()
Computes shear force diagram scale factor value in XY plane


shearForce_XY

public abstract void shearForce_XY(double scale)
Draws resulting shear force diagram in XY plane on a given scale


shearScaleFactor_XZ

public abstract void shearScaleFactor_XZ()
Computes shear force diagram scale factor value in XZ plane


shearForce_XZ

public abstract void shearForce_XZ(double scale)
Draws resulting shear force diagram in XZ plane on a given scale


bendingMomentScaleFactor_XY

public abstract void bendingMomentScaleFactor_XY()
Computes bending moment diagram scale factor value in XY plane


bendingMoment_XY

public abstract void bendingMoment_XY(double scale)
Draws resulting bending moment diagram in XY plane on a given scale


bendingMomentScaleFactor_XZ

public abstract void bendingMomentScaleFactor_XZ()
Computes bending moment diagram scale factor value in XZ plane


bendingMoment_XZ

public abstract void bendingMoment_XZ(double scale)
Draws resulting bending moment diagram in XZ plane on a given scale


reactions

public abstract void reactions()
Draws reactions indication next to nodal supports


setSize

public void setSize()
Sets viewpoint position and computes drawing size parameter according to model dimensions


coordTransform2D

public static double[] coordTransform2D(double xi,
                                        double yi,
                                        double dx,
                                        double dy,
                                        double ang)
Transforms coordinate components from an original 2D axis system to a new 2D axis system subjected to a translation and rotation


coordTransform3D

public double[] coordTransform3D(double x,
                                 double y,
                                 double z,
                                 double dx,
                                 double dy,
                                 double dz,
                                 int e)
Transforms coordinate components from an original 3D axis system to a new 3D axis system subjected to a translation and rotation


clean

public void clean()
Destructor method