I began working on a dll this weekend, it seems I had forgotten everything I knew about c++ dlls . So far I have something like
Struct ‘Point’ with No,X,Y,Z,Desc
A class ‘Pts’ with properties
Vector<Point>
bPtProtect
With Methods
ImportTextFile (To Allow for #,Y,X,Z,D #,X,Y,Z,D comma and space delimited)
ExportTextFile
GetPoint( by pt# return a struct)
GetPoint( by vector index)
GetPointCount(return vector.count)
GetPoint3d(pass byref 5 variables)
EditPoints
ListPoints
TranslatePoints
RotatePoints
TransformPoints
For now I’m going to implement the file dialog boxes with Win32 api. I hope to just use this code as a ‘proof of concept’ so that we can write wrappers for AutoCAD and Intellicad. Also on this first pass I’m going to just implement enough so that we can plot points on the screen. I hope to have it ready in the next couple of days.
Should we also include the CoGo (inverses, intersections, traverse) routines as part of the Pts class or should they be separate? Does an unsigned int allow for enough points (0 to 65535)? The only time I can think that it wouldn’t be more than enough would be for contouring large aerial photography.
Anything thing I missed? Thoughts? Comments?