void Draw3DFunction(void)void Draw3DFunction(GLuint objectID)Draws a 3D function surface (z = f(x,y)) on the board.
Reference Manual
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.
void Draw3DFunction(void)void Draw3DFunction(GLuint objectID)Draws a 3D function surface (z = f(x,y)) on the board.
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.
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.
void DrawFullBoard(void)void DrawFullBoard(GLuint objectID, CartPoint gridColor)Draws full board.
void DrawFullBoardWF(void)void DrawFullBoardWF(GLuint objectID, CartPoint gridColor)Draws full board wf.
void DrawSphPoint(GLuint pointID, unsigned int colorID, CartPoint point)Draws sph point.
virtual double Function(double x[])virtual double Function(double xValue, double yValue)Function to override by the user: defines the curve/surface to plot.
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.
void DrawIn(void)void DrawIn(float scale)Draws the arrow with its tip at the origin (pointing inward).
void DrawOut(void)void DrawOut(float scale)Draws the arrow with its tail at the origin (pointing outward).
void UpdateParam(void)Recomputes internal parameters after the dimensions change.
void DrawLineSegment(unsigned int mPoints)void DrawLineSegment(double uParam, unsigned int mPoints)Draws line segment.
void DrawSurfSegment(unsigned int mPoints, unsigned int nPoints)void DrawSurfSegment(double uParam, unsigned int mPoints, double vParam, unsigned int nPoints)Draws surf segment.
virtual CartPoint GetCurvePoint(double uParam)Returns a point on the curve for the given parameter.
virtual CartPoint GetNormal(double uParam, double vParam)Returns the surface normal (perpendicular vector) at the given point.
virtual CartPoint GetSurfPoint(double uParam, double vParam)Returns a point on the surface for the given (u, v) parameters.
virtual CCartPoint nGetCurvePoint(double uParam)Returns curve point. (Variant that works with CMatrix.)
virtual CCartPoint nGetNormal(double uParam, double vParam)Returns normal. (Variant that works with CMatrix.)
virtual CCartPoint nGetSurfPoint(double uParam, double vParam)Returns surf point. (Variant that works with CMatrix.)
Matrix Cycloidal(double hDim, double vDim, double hParam)Cycloidal — operation of CFlexlibleSheet. (ADEFID-specific element — description pending confirmation by the author.)
void DrawFlexibleSheet(bool bIsFinger, double zS1, double zS2, double zF, CProduct * pProduct, Matrix Pose)Draws flexible sheet.
Matrix GetHToPoint(double zS1, double zS2, double zF, Matrix Pose)Returns the distance (H) from the sheet to the given point.
Matrix Cycloidal(double hDim, double vDim, double hParam)Cycloidal — operation of CFlexSheetSor. (ADEFID-specific element — description pending confirmation by the author.)
Matrix CycloPoly(double hDim, double vDim, double hParam)Cyclo Poly — operation of CFlexSheetSor. (ADEFID-specific element — description pending confirmation by the author.)
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.
double GetdF_FlexCurve(double hDim, double xParam)Returns d f flex curve. (ADEFID-specific element — description pending confirmation by the author.)
double GetF_FlexCurve(double hDim, double vDim, double xParam)Returns f flex curve. (ADEFID-specific element — description pending confirmation by the author.)
Matrix GetHToPoint(double zS1, double zS2, double zF, Matrix Pose)Returns the distance (H) from the sheet to the given point.
void InitFlexCurveInvariants(double radPulley, double angle, double beltsLevel)Initializes flex curve invariants. (ADEFID-specific element — description pending confirmation by the author.)
Matrix Cycloidal(double hDim, double vDim, double hParam)Cycloidal — operation of CFlexSheetSor2. (ADEFID-specific element — description pending confirmation by the author.)
Matrix CycloPoly(double hDim, double vDim, double hParam)Cyclo Poly — operation of CFlexSheetSor2. (ADEFID-specific element — description pending confirmation by the author.)
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.
double GetdF_FlexCurve(double hDim, double xParam)Returns d f flex curve. (ADEFID-specific element — description pending confirmation by the author.)
double GetF_FlexCurve(double hDim, double vDim, double xParam)Returns f flex curve. (ADEFID-specific element — description pending confirmation by the author.)
Matrix GetHToPoint(double zS1, double zS2, double zF, Matrix Pose)Returns the distance (H) from the sheet to the given point.
void InitFlexCurveInvariants(double radPulley, double angle, double beltsLevel)Initializes flex curve invariants. (ADEFID-specific element — description pending confirmation by the author.)
virtual CartPoint GetCurvePoint(double uParam)Returns a point on the curve for the given parameter.
virtual CartPoint GetNormal(double uParam, double vParam)Returns the surface normal (perpendicular vector) at the given point.
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.
virtual CartPoint GetSurfPoint(double uParam, double vParam)Returns a point on the surface for the given (u, v) parameters.
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.)
BOOL OnInitFiles( CString filePath, CString fileName)MFC event handler (OnInitFiles): responds to «init files».
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.
double df_cycloidal(double del_x, double h, double abs)df cycloidal — operation of CIpiGLPrimitives.
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.)
void Draw_T_Cylind(GLuint ObjectID, CTexture *pTexture, double r, double z)Draws a textured cylinder.
void Draw_T_Polyhedron(GLuint ObjectID, CTexture *pTexture, float radius, float hight, int sides)Draws a textured polyhedron.
void DrawArc(double rmi,double angle, int points)Draws a circular arc.
void DrawArcF(float extRadius, float thickness, int radialPoints, bool zPositive=TRUE, float angle=180)Draws a filled arc (sector).
void DrawBCBall(double r, int m)Draws bc ball. (ADEFID-specific element — description pending confirmation by the author.)
void DrawBearingBlock(double r)Draws bearing block.
void DrawBevelCircularPlate(double radius, double thicknes, double tilt, unsigned int points, double param)Draws a circular plate with a bevel.
void DrawBoundingBoxf(float x1, float x2, float y1, float y2, float z1, float z2)void DrawBoundingBoxf(CartPoint endPoint, CartPoint uColor)Draws the bounding box.
void DrawCircle(double radius,int points)Draws a circle.
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.
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.
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.
void DrawCube(double l1, double l2, double l3)Draws a box (rectangular prism) of dimensions l1 × l2 × l3.
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.
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.
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).
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.
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.
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.
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.
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.
void DrawFlatBelt(float extRadius, float length, float width, float thickness, int radialPoints)Draws a flat belt.
void DrawHelix(double Rad, double height, double rad, int m, int n)Draws a helix.
void DrawHollowBand(double diaSmall, double diaBig, double centerDist, double depth, double thickness)Draws a hollow band.
void DrawInvPipeFilletW(double ro, double ri, double z, double r1, double r2, int m)Draws inv pipe fillet w.
void DrawIPI()void DrawIPI(unsigned int number)Draws ipi. (ADEFID-specific element — description pending confirmation by the author.)
void DrawKey(double h, double l)Draws a key/keyway.
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.
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.
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.
void DrawPlane(double l1, double l2, float n)Draws a rectangular plane.
void DrawPolygFillet(double r, double z, double r1, double r2, int m, int faces)Draws polyg fillet.
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.
void DrawPolyhedron(float radius, float hight, int sides)Draws a polyhedron.
void DrawPyramid(float side)Draws a pyramid.
void DrawRect3f(float left, float right, float bottom, float top, float z)Draws a rectangle in 3D.
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.
void DrawShaft(double r,double z)Draws a mechanical shaft.
void DrawShaftSupport(float footprint, float geometryScaleFactor)Draws a shaft support (bearing housing).
void DrawSolidBand(double diaSmall, double diaBig, double centerDist, double depth)Draws a solid band.
void DrawSphArrow(double rad)Draws an arrow over a spherical surface.
void DrawSphArrow2(double rad)Draws a spherical arrow (variant).
void DrawSphShell(double phimin, double phimax, double psimax, double rad)Draws a spherical shell.
void DrawSphVol(double phimin, double phimax, double psimax, double l[])Draws a spherical volume.
void DrawTCBall(double r, int m)Draws tc ball. (ADEFID-specific element — description pending confirmation by the author.)
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.
void DrawTrapezoid(float baseM, float basem, float height, float depth)Draws a trapezoid.
void DrawTriangle(float x1, float y1, float x2, float y2, float x3, float y3, float z)Draws a triangle.
double f_cycloidal(double del_x, double h, double abs)f cycloidal — operation of CIpiGLPrimitives.
#ifdef _DEBUG virtual void AssertValid() constAsserts valid.
void BGColor(float red, float green, float blue)void BGColor(CartPoint bgcolor)Sets the viewport background color.
virtual void CalculateDynamics(void)Updates the simulation/dynamics each frame; override per application.
virtual BOOL DestroyWindow()Destroys window.
void DoPickFrustum(void)Runs pick frustum.
void DoPickFrustumDrag(void)Runs pick frustum drag.
void DrawLabels(void)Draws labels.
virtual void Dump(CDumpContext& dc) constDumps.
DWORD ElapsedTimeinMSSinceLastRender(void)Returns the elapsed time (in ms) since the last render.
int FramesPerSecond(void)Returns the current frames per second (FPS).
unsigned int GenerateBitmapListForFont(char* fontname)Generates bitmap list for font.
void GenerateDefaultFonts(char* font3D, char* fontFlat)Generates default fonts.
unsigned int GenerateDisplayListForFont(char* fontname, double xt)unsigned int GenerateDisplayListForFont(char* fontname, double xt, int format)Generates display list for font.
float GetAspectRatio(void)Returns the viewport aspect ratio.
unsigned int GetBGColorFactor()Returns the background color factor.
unsigned int GetNewDisplayListID(void)Returns a new (free) OpenGL display-list ID.
unsigned int GetNewDisplayListIDs(int range)Returns a block of new (free) OpenGL display-list IDs.
CartPoint GetPoint(unsigned int Plane)Returns the 3D point matching a cursor position.
CartPoint GetXYPoint(void)Returns xy point.
CartPoint GetXZPoint(void)Returns xz point.
CartPoint GetYZPoint(void)Returns yz point.
void GLTextOut(unsigned int id, const char * const textstring)Draws text on screen (OpenGL) at the given position.
virtual BOOL HighLightObject(void)Highlights object.
void InitDefData(void)Initializes def data.
virtual BOOL InitFile(CString path, CString ProjName)Initializes file.
void OnAnimate(void)MFC event handler (OnAnimate): responds to «animate».
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct)MFC event handler (OnCreate): responds to «create».
virtual void OnDraw(CDC* pDC)MFC event handler (OnDraw): responds to «draw».
afx_msg BOOL OnEraseBkgnd(CDC* pDC)MFC event handler (OnEraseBkgnd): responds to «erase bkgnd».
virtual void OnInitialUpdate()MFC event handler (OnInitialUpdate): responds to «initial update».
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point)MFC event handler (OnLButtonDblClk): responds to «l button dbl clk».
afx_msg void OnLButtonDown(UINT nFlags, CPoint point)MFC event handler (OnLButtonDown): responds to «l button down».
afx_msg void OnLButtonUp(UINT nFlags, CPoint point)MFC event handler (OnLButtonUp): responds to «l button up».
afx_msg void OnMButtonDown(UINT nFlags, CPoint point)MFC event handler (OnMButtonDown): responds to «m button down».
afx_msg void OnMButtonUp(UINT nFlags, CPoint point)MFC event handler (OnMButtonUp): responds to «m button up».
afx_msg void OnMouseMove(UINT nFlags, CPoint point)MFC event handler (OnMouseMove): responds to «mouse move».
afx_msg void OnRButtonDown(UINT nFlags, CPoint point)MFC event handler (OnRButtonDown): responds to «r button down».
afx_msg void OnRButtonUp(UINT nFlags, CPoint point)MFC event handler (OnRButtonUp): responds to «r button up».
afx_msg void OnSize(UINT nType, int cx, int cy)MFC event handler (OnSize): responds to «size».
afx_msg void OnTimer(UINT nIDEvent)MFC event handler (OnTimer): responds to «timer».
virtual void PickSceneS(int drag)Picks scene s.
void PostRenderScene(void)Post Render Scene — operation of CIpiGLView.
void refreshDisplay(void)refresh Display — operation of CIpiGLView.
virtual BOOL RenderScene(void)Main scene drawing loop; override it for your own content.
virtual BOOL RenderUScene(void)Draws the user scene (custom content).
virtual void SaveRenderValues(void)Saves render values.
virtual void SetDefaultFonts(char* font3D = "Arial", char* fontFlat = 0)Sets default fonts.
void SetDefValues(void)Sets def values.
void SetLabelsColor()Sets labels color.
void SetMsgZoneColor(float red, float green, float blue)Sets msg zone color.
virtual void SetupScene(void)Sets up scene.
void ToggleAnimationFlag(void)Turns the animation on or off.
void ToggleFilledEnvironment(void)Toggles between a solid and wireframe environment.
void ToggleMotionFlag(void)Turns motion on or off.
void TogglePerspectivePlanesFlag(void)Toggles perspective planes flag.
void TraceSelect(unsigned int Scount, unsigned int* Sbuffer)Traces select.
void UndoPickFrustum(void)Undoes pick frustum.
void UpdateBoundingBox(void)Updates bounding box.
virtual void UpdateRenderValues(void)Updates render values.
BOOL OnInitFiles( CString filePath, CString fileName)MFC event handler (OnInitFiles): responds to «init files».
void AiMaterial()Applies the ai material/color to the surface.
void BConvMaterial()Applies the b conv material/color to the surface.
void BeltMaterial()Applies the belt material/color to the surface.
void BlueMaterial()Applies the blue material/color to the surface.
void BundleRedMaterial()Applies the bundle red material/color to the surface.
void DarkRedMaterial()Applies the dark red material/color to the surface.
void Draw_3DFrame(double Size, double baseDiam, GLint objectID)Draws a 3D coordinate frame with a base disk.
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.
void Draw_ServoMotor(GLuint list)Draws servo motor. (ADEFID-specific element — description pending confirmation by the author.)
void Draw3dFrame(double scale, double size)Draws a 3D coordinate frame (variant).
void DrawAll()Draws every element of the scene.
void DrawAll3D()Draws every element of the scene in 3D.
void DrawBBundle()Draws b bundle. (ADEFID-specific element — description pending confirmation by the author.)
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.)
void DrawBundleDirectionBox(int dir)Draws bundle direction box. (ADEFID-specific element — description pending confirmation by the author.)
void DrawBundlesDirectionBox(int dir1, int dir2, int dir3)Draws bundles direction box. (ADEFID-specific element — description pending confirmation by the author.)
void DrawBundleWID(unsigned int source, unsigned int destiny, double width)Draws bundle wid. (ADEFID-specific element — description pending confirmation by the author.)
void DrawFFM2D()Draws ffm2 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawFFM3D()Draws ffm3 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawFFM3DMod()Draws ffm3 d mod. (ADEFID-specific element — description pending confirmation by the author.)
void DrawFFMTop3D()Draws ffm top3 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawGuill2D()Draws guill2 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawGuill3D()Draws guill3 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawGUTA2D()Draws guta2 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawGUTA3D()Draws guta3 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawILGA2D()Draws ilga2 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawILGA3D()Draws ilga3 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawILgaTop3D()Draws i lga top3 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawINCBU2D()Draws incbu2 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawINCBU3D()Draws incbu3 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawINCBUBelts()Draws incbu belts. (ADEFID-specific element — description pending confirmation by the author.)
void DrawINCTC2D()Draws inctc2 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawINCTC2DMod(void)Draws inctc2 d mod. (ADEFID-specific element — description pending confirmation by the author.)
void DrawINCTC3D()Draws inctc3 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawINCTC3DMod()Draws inctc3 d mod. (ADEFID-specific element — description pending confirmation by the author.)
void DrawL2GC2D()Draws l2 gc2 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawL2GC3D()Draws l2 gc3 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawL2RC22D()Draws l2 rc22 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawL2RC22DMod(void)Draws l2 rc22 d mod. (ADEFID-specific element — description pending confirmation by the author.)
void DrawL2RC23D()Draws l2 rc23 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawL2RC23DMod()Draws l2 rc23 d mod. (ADEFID-specific element — description pending confirmation by the author.)
void DrawL2TC22D()Draws l2 tc22 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawL2TC22DMod(void)Draws l2 tc22 d mod. (ADEFID-specific element — description pending confirmation by the author.)
void DrawL2TC23D()Draws l2 tc23 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawL2TC23DMod()Draws l2 tc23 d mod. (ADEFID-specific element — description pending confirmation by the author.)
void DrawLTRG2D()Draws ltrg2 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawLTRG3D()Draws ltrg3 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawMBundle()Draws m bundle. (ADEFID-specific element — description pending confirmation by the author.)
void DrawNewAll3D()Draws new all3 d.
virtual void DrawPickScene()Draws pick scene.
void DrawPPMS3D()Draws ppms3 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawPulchra3D()Draws pulchra3 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawSBundle()Draws s bundle. (ADEFID-specific element — description pending confirmation by the author.)
void DrawSensor(double r,unsigned char state)Draws sensor. (ADEFID-specific element — description pending confirmation by the author.)
void DrawSPBU22D()Draws spbu22 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawSPBU23D()Draws spbu23 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawSPBUBelts()Draws spbu belts. (ADEFID-specific element — description pending confirmation by the author.)
void DrawSphericalLight(double r, unsigned char state)Draws spherical light.
void DrawSTAR2D()Draws star2 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawSTAR3D()Draws star3 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawSVIS2All3D()Draws svis2 all3 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawSVISAll3D()Draws svis all3 d. (ADEFID-specific element — description pending confirmation by the author.)
void DrawTiledBoard(int nXTiles, int nYTiles, CartPoint XYZsize, CartPoint Color1, CartPoint Color2)Draws tiled board.
void FFMMaterial()Applies the ffm material/color to the surface.
void GuillMaterial()Applies the guill material/color to the surface.
void GUTAMaterial()Applies the guta material/color to the surface.
virtual void HighLightMaterial(void)Applies the high light material/color to the surface.
void ILgaMaterial()Applies the i lga material/color to the surface.
virtual void nTakeObjectToPose(CMatrix Pose, unsigned int ObjectID)Takes object to pose. (Variant that works with CMatrix.)
void OrangeMaterial()Applies the orange material/color to the surface.
void RConvMaterial()Applies the r conv material/color to the surface.
void RedMaterial()Applies the red material/color to the surface.
void RenderNewSVSScene3D()Renders new svs scene3 d. (ADEFID-specific element — description pending confirmation by the author.)
void RenderNewSVSScene3DILgaSuspended()Renders new svs scene3 di lga suspended. (ADEFID-specific element — description pending confirmation by the author.)
void RenderSVIS2Scene3D()Renders svis2 scene3 d. (ADEFID-specific element — description pending confirmation by the author.)
void RenderSVISLine1Suspend()Renders svis line1 suspend. (ADEFID-specific element — description pending confirmation by the author.)
void RenderSVISLine2Suspend()Renders svis line2 suspend. (ADEFID-specific element — description pending confirmation by the author.)
void RenderSVISLine3Suspend()Renders svis line3 suspend. (ADEFID-specific element — description pending confirmation by the author.)
void RenderSVISLine4Suspend()Renders svis line4 suspend. (ADEFID-specific element — description pending confirmation by the author.)
void RenderSVISLineSuspend()Renders svis line suspend. (ADEFID-specific element — description pending confirmation by the author.)
void RenderSVISPulchra1Suspend()Renders svis pulchra1 suspend. (ADEFID-specific element — description pending confirmation by the author.)
void RenderSVISPulchra2Suspend()Renders svis pulchra2 suspend. (ADEFID-specific element — description pending confirmation by the author.)
void RenderSVISPulchra3Suspend()Renders svis pulchra3 suspend. (ADEFID-specific element — description pending confirmation by the author.)
void RenderSVISScene3D()Renders svis scene3 d. (ADEFID-specific element — description pending confirmation by the author.)
void RenderSVSScene()Renders svs scene. (ADEFID-specific element — description pending confirmation by the author.)
void RenderSVSScene3D()Renders svs scene3 d. (ADEFID-specific element — description pending confirmation by the author.)
void RenderSVSScene3DILgaSuspended()Renders svs scene3 di lga suspended. (ADEFID-specific element — description pending confirmation by the author.)
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.
void SplicerMaterial()Applies the splicer material/color to the surface.
virtual void TakeObjectToPose(Matrix Pose, unsigned int ObjectID)Takes object to pose.
void YellowMaterial()Applies the yellow material/color to the surface.
void DrawPath(double vert1[], double vert2[])void DrawPath(Matrix Pose, double length)void DrawPath(GLuint objectID)void DrawPath(void)Draws path.
void EndPath(double vert1[], double vert2[])void EndPath(Matrix Pose, double length)Ends path.
void InitPath(double vert1[], double vert2[])void InitPath(Matrix Pose, double length)Initializes path.
void SetLine(double vert1[], double vert2[])void SetLine(Matrix Pose, double length)void SetLine(double zValue, Matrix Pose)Sets line.
void DrawPath(double x, double y, double z)void DrawPath(Matrix Pose)void DrawPath(void)void DrawPath(GLint ObjectID)Draws path.
void EndPath(double x, double y, double z)void EndPath(Matrix Pose)Ends path.
double GetYMax(void)Returns the maximum Y value of the path segment.
void InitPath(double x, double y, double z)void InitPath(Matrix Pose)Initializes path.
void nDrawPath(CMatrix Pose)Draws path. (Variant that works with CMatrix.)
void nInitPath(CMatrix Pose)Initializes path. (Variant that works with CMatrix.)
void SetPoint(double x, double y, double z)void SetPoint(Matrix Pose)Sets point.
void UpdateToNewFactors(void)Updates to new factors.
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.
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.
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.
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.
void DrawHLine(double yValue, CartPoint color)Draws h line.
void DrawSphPoint(unsigned int colorID, CartPoint point)void DrawSphPoint(GLuint pointID, unsigned int colorID, CartPoint point)Draws sph point.
void DrawVHair(CartPoint point, CartPoint origin, float horSize, float verSize)Draws v hair.
void DrawVLine(double yValue, CartPoint color)Draws v line.
virtual double Function(double x, double y=0)Function to override by the user: defines the curve/surface to plot.
CartPoint GetSnapPoint(CartPoint point, double xIncrease, double yIncrease)Returns snap point.
virtual void DrawProduct(unsigned int ProductID)Draws product.
CartPoint GetMovingPoint(void)Returns the object's moving point.
CartPoint GetPickPoint(void)Returns the object's current pick (selection) point.
CartPoint GetReferencePoint(void)Returns the object's reference point.
void SetMovingPoint(float x, float y)void SetMovingPoint(float x, float y, float z)void SetMovingPoint(CartPoint point)Sets the object's moving point.
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.
void SetReferencePoint(float x, float y)void SetReferencePoint(float x, float y, float z)void SetReferencePoint(CartPoint point)Sets the object's reference point.
void UpdateReferencePoint(CartPoint newMovingPoint)Updates the reference point from a new moving point.
bool CheckMultipleSTLFiles(bool files[], unsigned int nFiles, CString path)Check Multiple STL Files — operation of CSTLDraw.
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.
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.
int AddAlphaLayer(unsigned char alpha)Adds alpha layer.
int BGRtoRGB(void)Converts the channel order from BGR to RGB.
int Draw(CDC *pDC,int xOffset=0,int yOffset=0, int width=-1, int height=-1)Draws the texture.
int DuplicateMirror(int left=0,int top=0,int right=-1,int bottom=-1)Duplicates mirror.
int DuplicateRepeatWidth(int left=0,int top=0,int right=-1,int bottom=-1)Duplicates repeat width.
int Extract(int left=0,int top=0,int right=-1,int bottom=-1)Extracts.
unsigned char *GetData(void)Returns the image data buffer.
unsigned int GetDepth(void)Returns the color depth (bits per pixel).
CString GetFileName(void)Returns the texture's file name.
unsigned int GetHeight(void)Returns the height (in pixels).
unsigned int GetWidth(void)Returns the width (in pixels).
int Grey(unsigned int x,unsigned int y)Converts the image to grayscale.
int HasAlpha()Reports whether the texture has an alpha (transparency) channel.
int HigherPowerOfTwo(int value)Returns the next power of two greater than or equal to the value.
int IsValid()Reports whether the texture is valid (loaded correctly).
int LowerPowerOfTwo(int value)Returns the largest power of two less than or equal to the value.
int PutAlpha(CTexture *pTexture)Sets alpha.
int ReadBuffer(unsigned char *buffer, int width, int height, int depth)Reads buffer.
int ReadFile(char *filename,unsigned int width=-1,unsigned int height=-1,unsigned int depth=-1)Reads an image from a file.
int ReadFileBMP(char *filename)Reads an image from a BMP file.
int ReadFileRAW(char *filename,unsigned int width,unsigned int height,unsigned int depth)Reads an image from a RAW file.
int SameSize(CTexture *pTexture)Reports whether two textures have the same size.
int SaveFile(char *filename)Saves the image to a file.
int SaveFileBMP(char *filename)Saves the image to a BMP file.
int SaveFileRAW(char *filename)Saves the image to a RAW file.
int SetAlphaLayer(unsigned char alpha)Sets alpha layer.
void UpdateHeader()Updates header.
void UpdateWidthByte32()Updates width byte32.
unsigned int WidthByte32(unsigned int width,unsigned int depth)Width Byte32 — operation of CTexture.