DSTRUCT.H

Go to the documentation of this file.
00001 /* --
00002 OpenFX - Modelling, Animation and Rendering Package
00003 -- */
00004 
00005 
00006 /* file DSTRUCT.H     include with defines for external functions */
00007 
00008 #include "../common/mem.h"
00009 
00010 #define  MainVp              (*(lpEVI->MainVp))
00011 #define  MainEp              (*(lpEVI->MainEp))
00012 #define  MainFp              (*(lpEVI->MainFp))
00013 #define  MainSp              (*(lpEVI->MainSp))
00014 #define  FirstSp             (*(lpEVI->FirstSp))
00015 #define  MainNp              (*(lpEVI->MainNp))
00016 #define  Nvert               (*(lpEVI->Nvert))
00017 #define  NvertSelect         (*(lpEVI->NvertSelect))
00018 #define  NvertDeselect       (*(lpEVI->NvertDeselect))
00019 #define  Nedge               (*(lpEVI->Nedge))
00020 #define  Nface               (*(lpEVI->Nface))
00021 #define  Nskel               (*(lpEVI->Nskel))
00022 #define  nImaps              (*(lpEVI->nImaps))
00023 #define  Nnurbs              (*(lpEVI->Nnurbs))
00024 #define  nMats                (*(lpEVI->nMats))
00025 #define  iMap                (lpEVI->iMap)
00026 #define  iMat                (lpEVI->iMat)
00027 //#define  xShaders            (lpEVI->xShaders)
00028 #define  NpointerX           (*(lpEVI->NpointerX))
00029 #define  NpointerY           (*(lpEVI->NpointerY))
00030 #define  NpointerZ           (*(lpEVI->NpointerZ))
00031 #define  TVsizeX             (*(lpEVI->TVsizeX))
00032 #define  TVsizeY             (*(lpEVI->TVsizeY))
00033 #define  TVsizeZ             (*(lpEVI->TVsizeZ))
00034 #define  TVpointX            (*(lpEVI->TVpointX))
00035 #define  TVpointY            (*(lpEVI->TVpointY))
00036 #define  TVpointZ            (*(lpEVI->TVpointZ))
00037 #define  RulerScale          (*(lpEVI->ruler))
00038 #define  ActiveView          (*(lpEVI->ActiveView))
00039 #define  WireFrame           (lpEVI->w_frame)
00040 #define  EraseAll(w)         (lpEVI->fpDA(w))
00041 #define  CreateVertex()      (lpEVI->fpCV())
00042 #define  CreateEdge(n,m)     (lpEVI->fpCE(n,m))
00043 #define  CreateFace(l,m,n)   (lpEVI->fpCF(l,m,n))
00044 #define  CreateSkeleton(s)   (lpEVI->fpCS(s))
00045 
00046 #define  CreateMaterial(a)   (lpEVI->fpCreateMaterial(a))
00047 #define  CreateImageMap()    (lpEVI->fpCreateImageMap())
00048 
00049 #define  UpdateVertexHeap(n) (lpEVI->fpUVH(n))
00050 #define  UpdateEdgeHeap(n)   (lpEVI->fpUEH(n))
00051 #define  UpdateFaceHeap(n)   (lpEVI->fpUFH(n))
00052 #define  UpdateCounters()    (lpEVI->fpTool_UP())
00053 #define  DrawModel()         (lpEVI->fpTool_RD())
00054 #define  AddCopy(n)          (lpEVI->fpTool_CP(n))
00055 #define  AutoFacetCurveWithHoles(n,m,o,p,q) \
00056                              (lpEVI->fpTool_FC(n,m,o,p,q))
00057 #define  CreateAttachedCopy(n) \
00058                              (lpEVI->fpTool_AC(n))
00059 #define  ChooseColour(a,b,c) (lpEVI->fpChooseColour(a,b,c))
00060 #define  ChooseFile(a,b,c,d,e,f) \
00061                              (lpEVI->fpChooseFile(a,b,c,d,e,f))
00062 #define  CentreDlgOnC(a)     (lpEVI->fpCentreDlgOnC(a))
00063 #define  CentreDlgOnS(a)     (lpEVI->fpCentreDlgOnS(a))
00064 
00065 #define  CopyFaceProp(a,b)   (lpEVI->fpCopyFaceProp(a,b))
00066 #define  ZeroSkeletonBoundingBox(a) \
00067                              (lpEVI->fpZeroSkeletonBoundingBox(a))
00068 #define  GetSkeletonBoundBox(a,b) \
00069                              (lpEVI->fpGetSkeletonBoundBox(a,b))
00070 #define  EraseVertex(a)      (lpEVI->fpEraseVertex(a))
00071 #define  EraseVertexMapping() \
00072                              (lpEVI->fpEraseVertexMapping())
00073 #define  EraseSkeleton(a)    (lpEVI->fpEraseSkeleton(a))
00074 #define  get_closest_vertex() \
00075                              (lpEVI->fpGetClosestVertex())
00076 #define  Connected(n,m)      (lpEVI->fpConnected(n,m))
00077 #define  oNormalize(v)       (lpEVI->fpNormalize(v))
00078 #define  ArbitraryRotate(a,p,q,m) \
00079                              (lpEVI->fpArbitraryRotate(a,p,q,m))
00080 #define  OrientateFaceNormals(a,b,c)\
00081                              (lpEVI->fpOrientateFaceNormals(a,b,c))
00082 #define  ReverseFaceOrientation(a,b)\
00083                              (lpEVI->fpReverseFaceOrientation(a,b))
00084 #define  IsFOSame(a,b,c,d,e,f)\
00085                              (lpEVI->fpIsFOSame(a,b,c,d,e,f))
00086 #define  OrientateSelectedFaces()\
00087                              (lpEVI->fpOrientateSelectedFaces())
00088 #define  AppendFileExtension(a,b)\
00089                              (lpEVI->fpAppendFileExtension(a,b))
00090 #define  EraseAllNurbs()     (lpEVI->fpEraseAllNurbs())
00091 #define  EraseNurbs(a)       (lpEVI->fpEraseNurbs(a))
00092 #define  CreateNurbs()       (lpEVI->fpCreateNurbs())
00093 #define  ClearNurbsSkeleton(a) \
00094                              (lpEVI->fpClearNurbsSkeleton(a))
00095 #define  AllocNurbs(a,b,c)   (lpEVI->fpAllocNurbs(a,b,c))
00096 #define  CloneNurbs(a,b)     (lpEVI->fpCloneNurbs(a,b))
00097 #define  ReleaseNurbs(a)     (lpEVI->fpReleaseNurbs(a))
00098 
00099 // For plugins that are made in TWO or more files
00100 // it is necessary to define one of them as the location of the 
00101 // local (this DLL) external structure pointer and the other 
00102 // as externals to it. Do this by defining _DSTRUCT_MAIN in one
00103 // file and _DSTRUCT_SUB in all the others. By default, the 3rd case
00104 // is assumed where the struct pointer is declared static and only
00105 // visible in the one FILE.
00106 
00107 #ifdef _DSTRUCT_MAIN
00108 X__STRUCTURE *lpEVI;
00109 #elif  _DSCRUCT_SUB
00110 extern X__STRUCTURE *lpEVI;
00111 #else
00112 static X__STRUCTURE *lpEVI;
00113 #endif
00114 

Generated on Sun Apr 27 14:20:08 2014 for OpenFX by  doxygen 1.5.6