Library IpiGUI

IpiGUI

Reference for 20 classes and 307 functions. Signatures extracted from the headers; drawing functions include an interactive preview. Some ADEFID-specific descriptions are pending confirmation by the author.

No functions match your search.
3DP
C3DPlot
C3DPlot.h · inherits from CIpiSModel
Includes: ipismodel.h26 public members8 functions
Draw3DFunction 2 overloads
void Draw3DFunction(void)
void Draw3DFunction(GLuint objectID)

Draws a 3D function surface (z = f(x,y)) on the board.

DrawBoard 4 overloads
void DrawBoard(void)
void DrawBoard(CartPoint gridColor)
void DrawBoard(GLuint objectID)
void DrawBoard(GLuint objectID, CartPoint gridColor)

Draws the board (grid and axes) of the 3D plotting environment. divisions controls the grid density.

DrawCrossHair 2 overloads
void DrawCrossHair(CartPoint point, CartPoint origin, float xSize, float ySize)
void DrawCrossHair(CartPoint point, CartPoint origin, float xSize, float ySize, float zSize)

Draws a crosshair (guide lines) at a point on the 3D plotting board.

DrawFullBoard 2 overloads
void DrawFullBoard(void)
void DrawFullBoard(GLuint objectID, CartPoint gridColor)

Draws full board.

DrawFullBoardWF 2 overloads
void DrawFullBoardWF(void)
void DrawFullBoardWF(GLuint objectID, CartPoint gridColor)

Draws full board wf.

DrawSphPoint
void DrawSphPoint(GLuint pointID, unsigned int colorID, CartPoint point)

Draws sph point.

Function 2 overloads
virtual double Function(double x[])
virtual double Function(double xValue, double yValue)

Function to override by the user: defines the curve/surface to plot.

GetNormal 2 overloads
void GetNormal(double point[3], double deltaX, double deltaY, double normal[3])
void GetNormal(double xValue, double yValue, double zValue, double deltaX, double deltaY, double normal[3])

Returns the surface normal (perpendicular vector) at the given point.

ARR
CArrow
Arrow.h · inherits from CIpiGLPrimitives
Includes: ipiglprimitives.h5 public members3 functions
DrawIn 2 overloads
void DrawIn(void)
void DrawIn(float scale)

Draws the arrow with its tip at the origin (pointing inward).

DrawOut 2 overloads
void DrawOut(void)
void DrawOut(float scale)

Draws the arrow with its tail at the origin (pointing outward).

UpdateParam
void UpdateParam(void)

Recomputes internal parameters after the dimensions change.

CXP
CCxPrimitives
CxPrimitives.h
Includes: vectors.h2 public members8 functions
DrawLineSegment 2 overloads
void DrawLineSegment(unsigned int mPoints)
void DrawLineSegment(double uParam, unsigned int mPoints)

Draws line segment.

DrawSurfSegment 2 overloads
void DrawSurfSegment(unsigned int mPoints, unsigned int nPoints)
void DrawSurfSegment(double uParam, unsigned int mPoints, double vParam, unsigned int nPoints)

Draws surf segment.

GetCurvePoint
virtual CartPoint GetCurvePoint(double uParam)

Returns a point on the curve for the given parameter.

GetNormal
virtual CartPoint GetNormal(double uParam, double vParam)

Returns the surface normal (perpendicular vector) at the given point.

GetSurfPoint
virtual CartPoint GetSurfPoint(double uParam, double vParam)

Returns a point on the surface for the given (u, v) parameters.

nGetCurvePoint
virtual CCartPoint nGetCurvePoint(double uParam)

Returns curve point. (Variant that works with CMatrix.)

nGetNormal
virtual CCartPoint nGetNormal(double uParam, double vParam)

Returns normal. (Variant that works with CMatrix.)

nGetSurfPoint
virtual CCartPoint nGetSurfPoint(double uParam, double vParam)

Returns surf point. (Variant that works with CMatrix.)

FLE
CFlexlibleSheet
FlexlibleSheet.h · inherits from CVectors
Includes: vectors.h, Product.h3 public members3 functions
Cycloidal
Matrix Cycloidal(double hDim, double vDim, double hParam)

Cycloidal — operation of CFlexlibleSheet. (ADEFID-specific element — description pending confirmation by the author.)

DrawFlexibleSheet
void DrawFlexibleSheet(bool bIsFinger, double zS1, double zS2, double zF, CProduct * pProduct, Matrix Pose)

Draws flexible sheet.

GetHToPoint
Matrix GetHToPoint(double zS1, double zS2, double zF, Matrix Pose)

Returns the distance (H) from the sheet to the given point.

FLE
CFlexSheetSor
FlexSheetSor.h · inherits from CVectors
Includes: vectors.h, Product.h14 public members7 functions
Cycloidal
Matrix Cycloidal(double hDim, double vDim, double hParam)

Cycloidal — operation of CFlexSheetSor. (ADEFID-specific element — description pending confirmation by the author.)

CycloPoly
Matrix CycloPoly(double hDim, double vDim, double hParam)

Cyclo Poly — operation of CFlexSheetSor. (ADEFID-specific element — description pending confirmation by the author.)

DrawFlexibleSheet 2 overloads
void DrawFlexibleSheet(bool bIsFinger, double zS1, double zS2, double zF, CProduct * pProduct, Matrix Pose)
void DrawFlexibleSheet(double offset, bool bIsFinger, double zS1, double zS2, double zF, CProduct * pProduct, Matrix Pose)

Draws flexible sheet.

GetdF_FlexCurve
double GetdF_FlexCurve(double hDim, double xParam)

Returns d f flex curve. (ADEFID-specific element — description pending confirmation by the author.)

GetF_FlexCurve
double GetF_FlexCurve(double hDim, double vDim, double xParam)

Returns f flex curve. (ADEFID-specific element — description pending confirmation by the author.)

GetHToPoint
Matrix GetHToPoint(double zS1, double zS2, double zF, Matrix Pose)

Returns the distance (H) from the sheet to the given point.

InitFlexCurveInvariants
void InitFlexCurveInvariants(double radPulley, double angle, double beltsLevel)

Initializes flex curve invariants. (ADEFID-specific element — description pending confirmation by the author.)

FLE
CFlexSheetSor2
FlexSheetSor2.h · inherits from CVectors
Includes: vectors.h, Product.h14 public members7 functions
Cycloidal
Matrix Cycloidal(double hDim, double vDim, double hParam)

Cycloidal — operation of CFlexSheetSor2. (ADEFID-specific element — description pending confirmation by the author.)

CycloPoly
Matrix CycloPoly(double hDim, double vDim, double hParam)

Cyclo Poly — operation of CFlexSheetSor2. (ADEFID-specific element — description pending confirmation by the author.)

DrawFlexibleSheet 2 overloads
void DrawFlexibleSheet(bool bIsFinger, double zS1, double zS2, double zF, CProduct * pProduct, Matrix Pose)
void DrawFlexibleSheet(double offset, bool bIsFinger, double zS1, double zS2, double zF, CProduct * pProduct, Matrix Pose)

Draws flexible sheet.

GetdF_FlexCurve
double GetdF_FlexCurve(double hDim, double xParam)

Returns d f flex curve. (ADEFID-specific element — description pending confirmation by the author.)

GetF_FlexCurve
double GetF_FlexCurve(double hDim, double vDim, double xParam)

Returns f flex curve. (ADEFID-specific element — description pending confirmation by the author.)

GetHToPoint
Matrix GetHToPoint(double zS1, double zS2, double zF, Matrix Pose)

Returns the distance (H) from the sheet to the given point.

InitFlexCurveInvariants
void InitFlexCurveInvariants(double radPulley, double angle, double beltsLevel)

Initializes flex curve invariants. (ADEFID-specific element — description pending confirmation by the author.)

HEL
CHelix
Helix.h · inherits from CSceneObject, CCxPrimitives
Includes: sceneobjetc.h, cxprimitives.h5 public members5 functions
GetCurvePoint
virtual CartPoint GetCurvePoint(double uParam)

Returns a point on the curve for the given parameter.

GetNormal
virtual CartPoint GetNormal(double uParam, double vParam)

Returns the surface normal (perpendicular vector) at the given point.

GetPos 3 overloads
Matrix GetPos(float param)
Matrix GetPos(float param, double tilt)
Matrix GetPos(float mParam, double angle, int mainAxis)

Returns the pose (position + orientation) at a point on the helix, given the argument param. The frame's X axis is tangent to the curve. Note: param is the function's only argument (it slides the frame along the helix); the m_mainR, m_height and m_turns sliders are CHelix member variables that define the helix shape (radius, pitch per turn, number of turns), not arguments of GetPos.

GetSurfPoint
virtual CartPoint GetSurfPoint(double uParam, double vParam)

Returns a point on the surface for the given (u, v) parameters.

nGetPos 3 overloads
CMatrix nGetPos(float param)
CMatrix nGetPos(float param, double tilt)
CMatrix nGetPos(float mParam, double angle, int mainAxis)

Returns pos. (Variant that works with CMatrix.)

IPI
CIpiDlg
IpiDlg.h · inherits from CDialog
Includes: infodata.h1 functions
OnInitFiles
BOOL OnInitFiles( CString filePath, CString fileName)

MFC event handler (OnInitFiles): responds to «init files».

IPI
CIpiGLPrimitives
IpiGLPrimitives.h · inherits from CVectors
Includes: vectors.h, Texture.h12 public members52 functions
CoverSurf
void CoverSurf(double p[3],double e[3],double l[2],double u[M][3],double v[M][3],float nu[M][3], float nv[M][3])

Builds/fills the cover surface between curves.

df_cycloidal
double df_cycloidal(double del_x, double h, double abs)

df cycloidal — operation of CIpiGLPrimitives.

draw_snake
void draw_snake(double u, double v, double r, int m, int n)

draw snake — operation of CIpiGLPrimitives. (ADEFID-specific element — description pending confirmation by the author.)

Draw_T_Cylind
void Draw_T_Cylind(GLuint ObjectID, CTexture *pTexture, double r, double z)

Draws a textured cylinder.

Draw_T_Polyhedron
void Draw_T_Polyhedron(GLuint ObjectID, CTexture *pTexture, float radius, float hight, int sides)

Draws a textured polyhedron.

DrawArc
void DrawArc(double rmi,double angle, int points)

Draws a circular arc.

DrawArcF
void DrawArcF(float extRadius, float thickness, int radialPoints, bool zPositive=TRUE, float angle=180)

Draws a filled arc (sector).

DrawBCBall
void DrawBCBall(double r, int m)

Draws bc ball. (ADEFID-specific element — description pending confirmation by the author.)

DrawBearingBlock
void DrawBearingBlock(double r)

Draws bearing block.

DrawBevelCircularPlate
void DrawBevelCircularPlate(double radius, double thicknes, double tilt, unsigned int points, double param)

Draws a circular plate with a bevel.

DrawBoundingBoxf 2 overloads
void DrawBoundingBoxf(float x1, float x2, float y1, float y2, float z1, float z2)
void DrawBoundingBoxf(CartPoint endPoint, CartPoint uColor)

Draws the bounding box.

DrawCircle
void DrawCircle(double radius,int points)

Draws a circle.

DrawCircularSpring
void DrawCircularSpring(double mainRadiius, double length, double sectionRadius, int coils, int sectionPoints, int coilPoints)

Draws a helical spring with a circular cross-section in OpenGL. The surface is generated by sweeping a circle (the wire) along a helix; the end coils are flattened so the spring sits flat. mainRadius is the helix radius, length the total length, sectionRadius the wire thickness, coils the number of turns, and sectionPoints/coilPoints the resolution.

DrawCone
void DrawCone(double r, double z, double ang, int n)

Draws a cone (or truncated cone) as a surface of revolution. r is the base radius, z the height and ang the wall opening angle (the top radius is r + z·tan(ang)); n toggles the base cap.

DrawCoordFrame 2 overloads
void DrawCoordFrame(float size)
void DrawCoordFrame(float size, BOOL x, BOOL y, BOOL z)

Draws a coordinate frame (the three X, Y, Z axes) of size size. The boolean x, y, z flags show or hide each axis.

DrawCube
void DrawCube(double l1, double l2, double l3)

Draws a box (rectangular prism) of dimensions l1 × l2 × l3.

DrawCylind
void DrawCylind(double r, double z, double normal)

Draws the side wall of a cylinder (no caps) of radius r and height z. It is the basis for pipes and compound cylinders.

DrawCylindExt
void DrawCylindExt(float radius, float width, int radialPoints, float angle=180)

Draws the outer wall of a partial cylinder (normals facing outward), of radius, height width and arc angle. Used as the external face of cylindrical parts.

DrawCylindF
void DrawCylindF(double r, double z, double normal)

Draws a solid cylinder (with caps) of radius r and height z. The normal parameter sets which way the surface normals face (outward or inward).

DrawCylindFillet
void DrawCylindFillet(double r, double z, double r1, double r2, int m)

Solid cylinder of radius r and height z with rounded edges (fillets): r1 is the top fillet radius, r2 the bottom fillet radius and m the number of segments per fillet arc.

DrawCylindFT
void DrawCylindFT(double r, double z, double tet, double normal)

Draws a solid cylinder sector (slice) of radius r, height z and angle tet. With tet = 360° it is a full capped cylinder.

DrawCylindInt
void DrawCylindInt(float radius, float width, int radialPoints, float angle=180)

Same as DrawCylindExt but with the normals facing inward (inner wall), for the inside of holes or tubes.

DrawDiskF
void DrawDiskF(double rmi, double rma, double normal)

Draws a flat ring (annulus) between the inner radius rmi and the outer radius rma. If rmi = 0 it is a full disk. The normal parameter sets which way the face points.

DrawDiskFT
void DrawDiskFT(double rmi, double rma, double tet, double normal)

Same as DrawDiskF but only a sector of angle tet (a slice of the ring). Useful for gauges or slices.

DrawFlatBelt
void DrawFlatBelt(float extRadius, float length, float width, float thickness, int radialPoints)

Draws a flat belt.

DrawHelix
void DrawHelix(double Rad, double height, double rad, int m, int n)

Draws a helix.

DrawHollowBand
void DrawHollowBand(double diaSmall, double diaBig, double centerDist, double depth, double thickness)

Draws a hollow band.

DrawInvPipeFilletW
void DrawInvPipeFilletW(double ro, double ri, double z, double r1, double r2, int m)

Draws inv pipe fillet w.

DrawIPI 2 overloads
void DrawIPI()
void DrawIPI(unsigned int number)

Draws ipi. (ADEFID-specific element — description pending confirmation by the author.)

DrawKey
void DrawKey(double h, double l)

Draws a key/keyway.

DrawLine 2 overloads
void DrawLine(CartPoint init, CartPoint end, CartPoint color)
void DrawLine(float length, float x, float y, float z)

Draws a line (or vector) between two points, with color. In the preview, vector v (blue) goes from the origin to the point set by the x, y, z components.

DrawPipe
void DrawPipe(double rmi, double rma, double z)

Draws a hollow pipe: outer (rma) and inner (rmi) walls joined by rings at the top and bottom, with height z.

DrawPipeFillet
void DrawPipeFillet(double ri, double ro, double z, double r1, double r2, int m)

Hollow pipe (inner radius ri, outer ro, height z) with rounded outer edges (fillets): r1 top fillet radius, r2 bottom fillet radius and m segments per arc.

DrawPlane
void DrawPlane(double l1, double l2, float n)

Draws a rectangular plane.

DrawPolygFillet
void DrawPolygFillet(double r, double z, double r1, double r2, int m, int faces)

Draws polyg fillet.

DrawPolygonalSpring 2 overloads
void DrawPolygonalSpring(double mainRadiius, double length, double vertices[][2], int faces, int coils, int coilPoints)
void DrawPolygonalSpring(double mainRadiius, double length, double vertices[][2], int faces, double param, int coilPoints)

Draws a spring with a polygonal cross-section: sweeps a regular polygon (faces sides) of radius section radius along the helix. mainRadius is the helix radius, length the length, coils the number of turns.

DrawPolyhedron
void DrawPolyhedron(float radius, float hight, int sides)

Draws a polyhedron.

DrawPyramid
void DrawPyramid(float side)

Draws a pyramid.

DrawRect3f
void DrawRect3f(float left, float right, float bottom, float top, float z)

Draws a rectangle in 3D.

DrawRectangularSpring
void DrawRectangularSpring(double mainRadiius, double length, double vertices[][2], int coils, int coilPoints)

Draws a spring with a rectangular cross-section: sweeps a rectangle (width × height) along the helix. mainRadius is the helix radius, length the length, coils the number of turns.

DrawShaft
void DrawShaft(double r,double z)

Draws a mechanical shaft.

DrawShaftSupport
void DrawShaftSupport(float footprint, float geometryScaleFactor)

Draws a shaft support (bearing housing).

DrawSolidBand
void DrawSolidBand(double diaSmall, double diaBig, double centerDist, double depth)

Draws a solid band.

DrawSphArrow
void DrawSphArrow(double rad)

Draws an arrow over a spherical surface.

DrawSphArrow2
void DrawSphArrow2(double rad)

Draws a spherical arrow (variant).

DrawSphShell
void DrawSphShell(double phimin, double phimax, double psimax, double rad)

Draws a spherical shell.

DrawSphVol
void DrawSphVol(double phimin, double phimax, double psimax, double l[])

Draws a spherical volume.

DrawTCBall
void DrawTCBall(double r, int m)

Draws tc ball. (ADEFID-specific element — description pending confirmation by the author.)

DrawTorus
void DrawTorus(double r1, double r2, double thet, int n1, int n2)

Draws a torus (donut) by sweeping a circle of radius r2 around an axis at distance r1. thet is the swept angle (360° = full torus); n1 and n2 are the sweep and tube resolution.

DrawTrapezoid
void DrawTrapezoid(float baseM, float basem, float height, float depth)

Draws a trapezoid.

DrawTriangle
void DrawTriangle(float x1, float y1, float x2, float y2, float x3, float y3, float z)

Draws a triangle.

f_cycloidal
double f_cycloidal(double del_x, double h, double abs)

f cycloidal — operation of CIpiGLPrimitives.

IPI
CIpiGLView
IpiGLView.h · inherits from CView, CIpiSModel
Includes: <mmsystem.h>, timer.h, IpiSModel.h, infodata.h93 public members59 functions
AssertValid
#ifdef _DEBUG virtual void AssertValid() const

Asserts valid.

BGColor 2 overloads
void BGColor(float red, float green, float blue)
void BGColor(CartPoint bgcolor)

Sets the viewport background color.

CalculateDynamics
virtual void CalculateDynamics(void)

Updates the simulation/dynamics each frame; override per application.

DestroyWindow
virtual BOOL DestroyWindow()

Destroys window.

DoPickFrustum
void DoPickFrustum(void)

Runs pick frustum.

DoPickFrustumDrag
void DoPickFrustumDrag(void)

Runs pick frustum drag.

DrawLabels
void DrawLabels(void)

Draws labels.

Dump
virtual void Dump(CDumpContext& dc) const

Dumps.

ElapsedTimeinMSSinceLastRender
DWORD ElapsedTimeinMSSinceLastRender(void)

Returns the elapsed time (in ms) since the last render.

FramesPerSecond
int FramesPerSecond(void)

Returns the current frames per second (FPS).

GenerateBitmapListForFont
unsigned int GenerateBitmapListForFont(char* fontname)

Generates bitmap list for font.

GenerateDefaultFonts
void GenerateDefaultFonts(char* font3D, char* fontFlat)

Generates default fonts.

GenerateDisplayListForFont 2 overloads
unsigned int GenerateDisplayListForFont(char* fontname, double xt)
unsigned int GenerateDisplayListForFont(char* fontname, double xt, int format)

Generates display list for font.

GetAspectRatio
float GetAspectRatio(void)

Returns the viewport aspect ratio.

GetBGColorFactor
unsigned int GetBGColorFactor()

Returns the background color factor.

GetNewDisplayListID
unsigned int GetNewDisplayListID(void)

Returns a new (free) OpenGL display-list ID.

GetNewDisplayListIDs
unsigned int GetNewDisplayListIDs(int range)

Returns a block of new (free) OpenGL display-list IDs.

GetPoint
CartPoint GetPoint(unsigned int Plane)

Returns the 3D point matching a cursor position.

GetXYPoint
CartPoint GetXYPoint(void)

Returns xy point.

GetXZPoint
CartPoint GetXZPoint(void)

Returns xz point.

GetYZPoint
CartPoint GetYZPoint(void)

Returns yz point.

GLTextOut
void GLTextOut(unsigned int id, const char * const textstring)

Draws text on screen (OpenGL) at the given position.

HighLightObject
virtual BOOL HighLightObject(void)

Highlights object.

InitDefData
void InitDefData(void)

Initializes def data.

InitFile
virtual BOOL InitFile(CString path, CString ProjName)

Initializes file.

OnAnimate
void OnAnimate(void)

MFC event handler (OnAnimate): responds to «animate».

OnCreate
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct)

MFC event handler (OnCreate): responds to «create».

OnDraw
virtual void OnDraw(CDC* pDC)

MFC event handler (OnDraw): responds to «draw».

OnEraseBkgnd
afx_msg BOOL OnEraseBkgnd(CDC* pDC)

MFC event handler (OnEraseBkgnd): responds to «erase bkgnd».

OnInitialUpdate
virtual void OnInitialUpdate()

MFC event handler (OnInitialUpdate): responds to «initial update».

OnLButtonDblClk
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point)

MFC event handler (OnLButtonDblClk): responds to «l button dbl clk».

OnLButtonDown
afx_msg void OnLButtonDown(UINT nFlags, CPoint point)

MFC event handler (OnLButtonDown): responds to «l button down».

OnLButtonUp
afx_msg void OnLButtonUp(UINT nFlags, CPoint point)

MFC event handler (OnLButtonUp): responds to «l button up».

OnMButtonDown
afx_msg void OnMButtonDown(UINT nFlags, CPoint point)

MFC event handler (OnMButtonDown): responds to «m button down».

OnMButtonUp
afx_msg void OnMButtonUp(UINT nFlags, CPoint point)

MFC event handler (OnMButtonUp): responds to «m button up».

OnMouseMove
afx_msg void OnMouseMove(UINT nFlags, CPoint point)

MFC event handler (OnMouseMove): responds to «mouse move».

OnRButtonDown
afx_msg void OnRButtonDown(UINT nFlags, CPoint point)

MFC event handler (OnRButtonDown): responds to «r button down».

OnRButtonUp
afx_msg void OnRButtonUp(UINT nFlags, CPoint point)

MFC event handler (OnRButtonUp): responds to «r button up».

OnSize
afx_msg void OnSize(UINT nType, int cx, int cy)

MFC event handler (OnSize): responds to «size».

OnTimer
afx_msg void OnTimer(UINT nIDEvent)

MFC event handler (OnTimer): responds to «timer».

PickSceneS
virtual void PickSceneS(int drag)

Picks scene s.

PostRenderScene
void PostRenderScene(void)

Post Render Scene — operation of CIpiGLView.

refreshDisplay
void refreshDisplay(void)

refresh Display — operation of CIpiGLView.

RenderScene
virtual BOOL RenderScene(void)

Main scene drawing loop; override it for your own content.

RenderUScene
virtual BOOL RenderUScene(void)

Draws the user scene (custom content).

SaveRenderValues
virtual void SaveRenderValues(void)

Saves render values.

SetDefaultFonts
virtual void SetDefaultFonts(char* font3D = "Arial", char* fontFlat = 0)

Sets default fonts.

SetDefValues
void SetDefValues(void)

Sets def values.

SetLabelsColor
void SetLabelsColor()

Sets labels color.

SetMsgZoneColor
void SetMsgZoneColor(float red, float green, float blue)

Sets msg zone color.

SetupScene
virtual void SetupScene(void)

Sets up scene.

ToggleAnimationFlag
void ToggleAnimationFlag(void)

Turns the animation on or off.

ToggleFilledEnvironment
void ToggleFilledEnvironment(void)

Toggles between a solid and wireframe environment.

ToggleMotionFlag
void ToggleMotionFlag(void)

Turns motion on or off.

TogglePerspectivePlanesFlag
void TogglePerspectivePlanesFlag(void)

Toggles perspective planes flag.

TraceSelect
void TraceSelect(unsigned int Scount, unsigned int* Sbuffer)

Traces select.

UndoPickFrustum
void UndoPickFrustum(void)

Undoes pick frustum.

UpdateBoundingBox
void UpdateBoundingBox(void)

Updates bounding box.

UpdateRenderValues
virtual void UpdateRenderValues(void)

Updates render values.

IPI
CIpiGLWnd
IpiGLWnd.h · inherits from CWnd
Includes: PathSegment.h, ipiglprimitives.h0 functions
IPI
CIpiMDDlg
IpiMDDlg.h · inherits from CDialog
Includes: IpiGLDoc.h2 public members1 functions
OnInitFiles
BOOL OnInitFiles( CString filePath, CString fileName)

MFC event handler (OnInitFiles): responds to «init files».

IPI
CIpiSModel
IpiSModel.h · inherits from CIpiGLPrimitives, CCxPrimitives
Includes: ipiglprimitives.h, CxPrimitives.h, Arrow.h, Helix.h, STLDraw.h11 public members91 functions
AiMaterial
void AiMaterial()

Applies the ai material/color to the surface.

BConvMaterial
void BConvMaterial()

Applies the b conv material/color to the surface.

BeltMaterial
void BeltMaterial()

Applies the belt material/color to the surface.

BlueMaterial
void BlueMaterial()

Applies the blue material/color to the surface.

BundleRedMaterial
void BundleRedMaterial()

Applies the bundle red material/color to the surface.

DarkRedMaterial
void DarkRedMaterial()

Applies the dark red material/color to the surface.

Draw_3DFrame
void Draw_3DFrame(double Size, double baseDiam, GLint objectID)

Draws a 3D coordinate frame with a base disk.

Draw_3DVector 2 overloads
void Draw_3DVector(CartPoint direction, double Size, double baseDiam, GLint objectID)
void Draw_3DVector(CartPoint direction, double Size, double baseDiam)

Draws a 3D vector (arrow) in the scene.

Draw_ServoMotor
void Draw_ServoMotor(GLuint list)

Draws servo motor. (ADEFID-specific element — description pending confirmation by the author.)

Draw3dFrame
void Draw3dFrame(double scale, double size)

Draws a 3D coordinate frame (variant).

DrawAll
void DrawAll()

Draws every element of the scene.

DrawAll3D
void DrawAll3D()

Draws every element of the scene in 3D.

DrawBBundle
void DrawBBundle()

Draws b bundle. (ADEFID-specific element — description pending confirmation by the author.)

DrawBund4DirBox
void DrawBund4DirBox(unsigned int dir1, unsigned int dir2, unsigned int dir3, unsigned int dir4)

Draws bund4 dir box. (ADEFID-specific element — description pending confirmation by the author.)

DrawBundleDirectionBox
void DrawBundleDirectionBox(int dir)

Draws bundle direction box. (ADEFID-specific element — description pending confirmation by the author.)

DrawBundlesDirectionBox
void DrawBundlesDirectionBox(int dir1, int dir2, int dir3)

Draws bundles direction box. (ADEFID-specific element — description pending confirmation by the author.)

DrawBundleWID
void DrawBundleWID(unsigned int source, unsigned int destiny, double width)

Draws bundle wid. (ADEFID-specific element — description pending confirmation by the author.)

DrawFFM2D
void DrawFFM2D()

Draws ffm2 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawFFM3D
void DrawFFM3D()

Draws ffm3 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawFFM3DMod
void DrawFFM3DMod()

Draws ffm3 d mod. (ADEFID-specific element — description pending confirmation by the author.)

DrawFFMTop3D
void DrawFFMTop3D()

Draws ffm top3 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawGuill2D
void DrawGuill2D()

Draws guill2 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawGuill3D
void DrawGuill3D()

Draws guill3 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawGUTA2D
void DrawGUTA2D()

Draws guta2 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawGUTA3D
void DrawGUTA3D()

Draws guta3 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawILGA2D
void DrawILGA2D()

Draws ilga2 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawILGA3D
void DrawILGA3D()

Draws ilga3 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawILgaTop3D
void DrawILgaTop3D()

Draws i lga top3 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawINCBU2D
void DrawINCBU2D()

Draws incbu2 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawINCBU3D
void DrawINCBU3D()

Draws incbu3 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawINCBUBelts
void DrawINCBUBelts()

Draws incbu belts. (ADEFID-specific element — description pending confirmation by the author.)

DrawINCTC2D
void DrawINCTC2D()

Draws inctc2 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawINCTC2DMod
void DrawINCTC2DMod(void)

Draws inctc2 d mod. (ADEFID-specific element — description pending confirmation by the author.)

DrawINCTC3D
void DrawINCTC3D()

Draws inctc3 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawINCTC3DMod
void DrawINCTC3DMod()

Draws inctc3 d mod. (ADEFID-specific element — description pending confirmation by the author.)

DrawL2GC2D
void DrawL2GC2D()

Draws l2 gc2 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawL2GC3D
void DrawL2GC3D()

Draws l2 gc3 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawL2RC22D
void DrawL2RC22D()

Draws l2 rc22 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawL2RC22DMod
void DrawL2RC22DMod(void)

Draws l2 rc22 d mod. (ADEFID-specific element — description pending confirmation by the author.)

DrawL2RC23D
void DrawL2RC23D()

Draws l2 rc23 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawL2RC23DMod
void DrawL2RC23DMod()

Draws l2 rc23 d mod. (ADEFID-specific element — description pending confirmation by the author.)

DrawL2TC22D
void DrawL2TC22D()

Draws l2 tc22 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawL2TC22DMod
void DrawL2TC22DMod(void)

Draws l2 tc22 d mod. (ADEFID-specific element — description pending confirmation by the author.)

DrawL2TC23D
void DrawL2TC23D()

Draws l2 tc23 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawL2TC23DMod
void DrawL2TC23DMod()

Draws l2 tc23 d mod. (ADEFID-specific element — description pending confirmation by the author.)

DrawLTRG2D
void DrawLTRG2D()

Draws ltrg2 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawLTRG3D
void DrawLTRG3D()

Draws ltrg3 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawMBundle
void DrawMBundle()

Draws m bundle. (ADEFID-specific element — description pending confirmation by the author.)

DrawNewAll3D
void DrawNewAll3D()

Draws new all3 d.

DrawPickScene
virtual void DrawPickScene()

Draws pick scene.

DrawPPMS3D
void DrawPPMS3D()

Draws ppms3 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawPulchra3D
void DrawPulchra3D()

Draws pulchra3 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawSBundle
void DrawSBundle()

Draws s bundle. (ADEFID-specific element — description pending confirmation by the author.)

DrawSensor
void DrawSensor(double r,unsigned char state)

Draws sensor. (ADEFID-specific element — description pending confirmation by the author.)

DrawSPBU22D
void DrawSPBU22D()

Draws spbu22 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawSPBU23D
void DrawSPBU23D()

Draws spbu23 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawSPBUBelts
void DrawSPBUBelts()

Draws spbu belts. (ADEFID-specific element — description pending confirmation by the author.)

DrawSphericalLight
void DrawSphericalLight(double r, unsigned char state)

Draws spherical light.

DrawSTAR2D
void DrawSTAR2D()

Draws star2 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawSTAR3D
void DrawSTAR3D()

Draws star3 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawSVIS2All3D
void DrawSVIS2All3D()

Draws svis2 all3 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawSVISAll3D
void DrawSVISAll3D()

Draws svis all3 d. (ADEFID-specific element — description pending confirmation by the author.)

DrawTiledBoard
void DrawTiledBoard(int nXTiles, int nYTiles, CartPoint XYZsize, CartPoint Color1, CartPoint Color2)

Draws tiled board.

FFMMaterial
void FFMMaterial()

Applies the ffm material/color to the surface.

GuillMaterial
void GuillMaterial()

Applies the guill material/color to the surface.

GUTAMaterial
void GUTAMaterial()

Applies the guta material/color to the surface.

HighLightMaterial
virtual void HighLightMaterial(void)

Applies the high light material/color to the surface.

ILgaMaterial
void ILgaMaterial()

Applies the i lga material/color to the surface.

nTakeObjectToPose
virtual void nTakeObjectToPose(CMatrix Pose, unsigned int ObjectID)

Takes object to pose. (Variant that works with CMatrix.)

OrangeMaterial
void OrangeMaterial()

Applies the orange material/color to the surface.

RConvMaterial
void RConvMaterial()

Applies the r conv material/color to the surface.

RedMaterial
void RedMaterial()

Applies the red material/color to the surface.

RenderNewSVSScene3D
void RenderNewSVSScene3D()

Renders new svs scene3 d. (ADEFID-specific element — description pending confirmation by the author.)

RenderNewSVSScene3DILgaSuspended
void RenderNewSVSScene3DILgaSuspended()

Renders new svs scene3 di lga suspended. (ADEFID-specific element — description pending confirmation by the author.)

RenderSVIS2Scene3D
void RenderSVIS2Scene3D()

Renders svis2 scene3 d. (ADEFID-specific element — description pending confirmation by the author.)

RenderSVISLine1Suspend
void RenderSVISLine1Suspend()

Renders svis line1 suspend. (ADEFID-specific element — description pending confirmation by the author.)

RenderSVISLine2Suspend
void RenderSVISLine2Suspend()

Renders svis line2 suspend. (ADEFID-specific element — description pending confirmation by the author.)

RenderSVISLine3Suspend
void RenderSVISLine3Suspend()

Renders svis line3 suspend. (ADEFID-specific element — description pending confirmation by the author.)

RenderSVISLine4Suspend
void RenderSVISLine4Suspend()

Renders svis line4 suspend. (ADEFID-specific element — description pending confirmation by the author.)

RenderSVISLineSuspend
void RenderSVISLineSuspend()

Renders svis line suspend. (ADEFID-specific element — description pending confirmation by the author.)

RenderSVISPulchra1Suspend
void RenderSVISPulchra1Suspend()

Renders svis pulchra1 suspend. (ADEFID-specific element — description pending confirmation by the author.)

RenderSVISPulchra2Suspend
void RenderSVISPulchra2Suspend()

Renders svis pulchra2 suspend. (ADEFID-specific element — description pending confirmation by the author.)

RenderSVISPulchra3Suspend
void RenderSVISPulchra3Suspend()

Renders svis pulchra3 suspend. (ADEFID-specific element — description pending confirmation by the author.)

RenderSVISScene3D
void RenderSVISScene3D()

Renders svis scene3 d. (ADEFID-specific element — description pending confirmation by the author.)

RenderSVSScene
void RenderSVSScene()

Renders svs scene. (ADEFID-specific element — description pending confirmation by the author.)

RenderSVSScene3D
void RenderSVSScene3D()

Renders svs scene3 d. (ADEFID-specific element — description pending confirmation by the author.)

RenderSVSScene3DILgaSuspended
void RenderSVSScene3DILgaSuspended()

Renders svs scene3 di lga suspended. (ADEFID-specific element — description pending confirmation by the author.)

SetMaterial 3 overloads
void SetMaterial(GLfloat red, GLfloat green, GLfloat blue)
void SetMaterial(unsigned int index)
void SetMaterial(CartPoint mainColor)

Applies the set material/color to the surface.

SplicerMaterial
void SplicerMaterial()

Applies the splicer material/color to the surface.

TakeObjectToPose
virtual void TakeObjectToPose(Matrix Pose, unsigned int ObjectID)

Takes object to pose.

YellowMaterial
void YellowMaterial()

Applies the yellow material/color to the surface.

PAT
CPathLineSegments
PathLineSegments.h · inherits from CSceneObject
Includes: sceneobject.h4 public members4 functions
DrawPath 4 overloads
void DrawPath(double vert1[], double vert2[])
void DrawPath(Matrix Pose, double length)
void DrawPath(GLuint objectID)
void DrawPath(void)

Draws path.

EndPath 2 overloads
void EndPath(double vert1[], double vert2[])
void EndPath(Matrix Pose, double length)

Ends path.

InitPath 2 overloads
void InitPath(double vert1[], double vert2[])
void InitPath(Matrix Pose, double length)

Initializes path.

SetLine 3 overloads
void SetLine(double vert1[], double vert2[])
void SetLine(Matrix Pose, double length)
void SetLine(double zValue, Matrix Pose)

Sets line.

PAT
CPathSegment
PathSegment.h · inherits from CSceneObject
Includes: sceneobject.h4 public members8 functions
DrawPath 4 overloads
void DrawPath(double x, double y, double z)
void DrawPath(Matrix Pose)
void DrawPath(void)
void DrawPath(GLint ObjectID)

Draws path.

EndPath 2 overloads
void EndPath(double x, double y, double z)
void EndPath(Matrix Pose)

Ends path.

GetYMax
double GetYMax(void)

Returns the maximum Y value of the path segment.

InitPath 2 overloads
void InitPath(double x, double y, double z)
void InitPath(Matrix Pose)

Initializes path.

nDrawPath
void nDrawPath(CMatrix Pose)

Draws path. (Variant that works with CMatrix.)

nInitPath
void nInitPath(CMatrix Pose)

Initializes path. (Variant that works with CMatrix.)

SetPoint 2 overloads
void SetPoint(double x, double y, double z)
void SetPoint(Matrix Pose)

Sets point.

UpdateToNewFactors
void UpdateToNewFactors(void)

Updates to new factors.

PLA
CPlanarPlot
PlanarPlot.h · inherits from CIpiSModel
Includes: ipismodel.h, timer.h24 public members10 functions
DrawBoard 4 overloads
void DrawBoard(CartPoint gridColor)
void DrawBoard(GLuint objectID, CartPoint gridColor)
void DrawBoard(GLuint objectID)
void DrawBoard(void)

Draws the board (grid and axes) of the 2D plotting area. divisions controls the grid density.

DrawCrossHair 2 overloads
void DrawCrossHair(CartPoint point, CartPoint origin, float horSize, float verSize)
void DrawCrossHair(CartPoint point, CartPoint origin, float horSize, float verSize, BOOL isSnap)

Draws a crosshair (guide lines) at a point on the board, useful to mark coordinates or the cursor over the curve.

DrawFunction 3 overloads
void DrawFunction(double param=0)
void DrawFunction(GLuint objectID, double param=0)
void DrawFunction(GLuint objectID, CartPoint color, double param=0)

Draws the curve of the user-defined function (Function(x)) on the board. The optional parameter shifts/animates the curve. The curve shown here is a sample.

DrawFunctionRoughly
void DrawFunctionRoughly(unsigned int nPoints=50, double param=0)

Same as DrawFunction but with fewer points (quick/rough trace), useful for previewing while adjusting parameters.

DrawHLine
void DrawHLine(double yValue, CartPoint color)

Draws h line.

DrawSphPoint 2 overloads
void DrawSphPoint(unsigned int colorID, CartPoint point)
void DrawSphPoint(GLuint pointID, unsigned int colorID, CartPoint point)

Draws sph point.

DrawVHair
void DrawVHair(CartPoint point, CartPoint origin, float horSize, float verSize)

Draws v hair.

DrawVLine
void DrawVLine(double yValue, CartPoint color)

Draws v line.

Function
virtual double Function(double x, double y=0)

Function to override by the user: defines the curve/surface to plot.

GetSnapPoint
CartPoint GetSnapPoint(CartPoint point, double xIncrease, double yIncrease)

Returns snap point.

PRO
CProduct
Product.h · inherits from CSceneObject, CIpiSModel
Includes: SceneObject.h, IpiSModel.h, timer.h10 public members1 functions
DrawProduct
virtual void DrawProduct(unsigned int ProductID)

Draws product.

SCE
CSceneObject
SceneObject.h
Includes: vectors.h3 public members7 functions
GetMovingPoint
CartPoint GetMovingPoint(void)

Returns the object's moving point.

GetPickPoint
CartPoint GetPickPoint(void)

Returns the object's current pick (selection) point.

GetReferencePoint
CartPoint GetReferencePoint(void)

Returns the object's reference point.

SetMovingPoint 3 overloads
void SetMovingPoint(float x, float y)
void SetMovingPoint(float x, float y, float z)
void SetMovingPoint(CartPoint point)

Sets the object's moving point.

SetPickPoint 3 overloads
void SetPickPoint(float x, float y)
void SetPickPoint(float x, float y, float z)
void SetPickPoint(CartPoint point)

Sets the object's pick (selection) point.

SetReferencePoint 3 overloads
void SetReferencePoint(float x, float y)
void SetReferencePoint(float x, float y, float z)
void SetReferencePoint(CartPoint point)

Sets the object's reference point.

UpdateReferencePoint
void UpdateReferencePoint(CartPoint newMovingPoint)

Updates the reference point from a new moving point.

STL
CSTLDraw
STLDraw.h
Includes: <fstream>1 public members3 functions
CheckMultipleSTLFiles
bool CheckMultipleSTLFiles(bool files[], unsigned int nFiles, CString path)

Check Multiple STL Files — operation of CSTLDraw.

DrawSTL 2 overloads
bool DrawSTL(int ListNumber, CString fileName, float Scale, float Xorg, float Yorg, float Zorg)
bool DrawSTL(int ListNumber, CString mainPath, CString FileName, float Scale, float Xorg, float Yorg, float Zorg)

Loads and draws a triangle mesh from an .stl file into an OpenGL display list, with configurable scale and origin. Shown here is a real link of the Fanuc 710iC arm.

DrawSTL_SW 2 overloads
bool DrawSTL_SW(int ListNumber, CString fileName, float Scale, float Xorg, float Yorg, float Zorg)
bool DrawSTL_SW(int ListNumber, CString mainPath, CString FileName, float Scale, float Xorg, float Yorg, float Zorg)

Variant of DrawSTL for files exported from SolidWorks (adjusts orientation/units). Loads and draws the file's triangle mesh.

TEX
CTexture
Texture.h · inherits from CObject
29 functions
AddAlphaLayer
int AddAlphaLayer(unsigned char alpha)

Adds alpha layer.

BGRtoRGB
int BGRtoRGB(void)

Converts the channel order from BGR to RGB.

Draw
int Draw(CDC *pDC,int xOffset=0,int yOffset=0, int width=-1, int height=-1)

Draws the texture.

DuplicateMirror
int DuplicateMirror(int left=0,int top=0,int right=-1,int bottom=-1)

Duplicates mirror.

DuplicateRepeatWidth
int DuplicateRepeatWidth(int left=0,int top=0,int right=-1,int bottom=-1)

Duplicates repeat width.

Extract
int Extract(int left=0,int top=0,int right=-1,int bottom=-1)

Extracts.

GetData
unsigned char *GetData(void)

Returns the image data buffer.

GetDepth
unsigned int GetDepth(void)

Returns the color depth (bits per pixel).

GetFileName
CString GetFileName(void)

Returns the texture's file name.

GetHeight
unsigned int GetHeight(void)

Returns the height (in pixels).

GetWidth
unsigned int GetWidth(void)

Returns the width (in pixels).

Grey
int Grey(unsigned int x,unsigned int y)

Converts the image to grayscale.

HasAlpha
int HasAlpha()

Reports whether the texture has an alpha (transparency) channel.

HigherPowerOfTwo
int HigherPowerOfTwo(int value)

Returns the next power of two greater than or equal to the value.

IsValid
int IsValid()

Reports whether the texture is valid (loaded correctly).

LowerPowerOfTwo
int LowerPowerOfTwo(int value)

Returns the largest power of two less than or equal to the value.

PutAlpha
int PutAlpha(CTexture *pTexture)

Sets alpha.

ReadBuffer
int ReadBuffer(unsigned char *buffer, int width, int height, int depth)

Reads buffer.

ReadFile
int ReadFile(char *filename,unsigned int width=-1,unsigned int height=-1,unsigned int depth=-1)

Reads an image from a file.

ReadFileBMP
int ReadFileBMP(char *filename)

Reads an image from a BMP file.

ReadFileRAW
int ReadFileRAW(char *filename,unsigned int width,unsigned int height,unsigned int depth)

Reads an image from a RAW file.

SameSize
int SameSize(CTexture *pTexture)

Reports whether two textures have the same size.

SaveFile
int SaveFile(char *filename)

Saves the image to a file.

SaveFileBMP
int SaveFileBMP(char *filename)

Saves the image to a BMP file.

SaveFileRAW
int SaveFileRAW(char *filename)

Saves the image to a RAW file.

SetAlphaLayer
int SetAlphaLayer(unsigned char alpha)

Sets alpha layer.

UpdateHeader
void UpdateHeader()

Updates header.

UpdateWidthByte32
void UpdateWidthByte32()

Updates width byte32.

WidthByte32
unsigned int WidthByte32(unsigned int width,unsigned int depth)

Width Byte32 — operation of CTexture.