Subject:
|
Re: A comprehensive LDraw object model
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Sat, 9 Feb 2002 19:55:22 GMT
|
Viewed:
|
583 times
|
| |
| |
In lugnet.cad.dev, Jeremy H. Sproat writes:
> If the LDraw community can pool their efforts into providing at least an
> object model for LDraw parts and functionality,
Here's my first contribution, a rough outline of a class structure.
*** LDRAW LINE TYPE CLASSES ***
abstract class LineType - ancestor class for all line-type objects
+ class LineType0 - comment line-type
+ class LineTypeCommand - command line-type
+ abstract class PhysicalLineType - ancestor class for all physically
mutable line-types
+ class LineType1 - subpart line-type
+ abstract class PrimitiveLineType - ancestor class for all
line-segment-containing line-types
+ class LineType2 - line segment line-type
+ class LineType3 - triangle line-type
+ class LineType4 - quad line-type
+ class LineType5 - optional line segment line-type
+ class LineTypeNull - blank line-type
*** LDRAW DAT MANAGEMENT CLASSES ***
class ColorManager
class LDrawFile - a container for LineType objects, represents a single datfile
+ class LDrawFileMulti - a container for LDrawFile objects, represents an
MPD file
abstract class ModelLoader - ancestor class for all model loaders, model cache
+ class DiskModelLoader - loads datfiles from local storage
+ class HTTPModelLoader - loads datfiles from web repository
class ModelParser - parses a datfile into its component LineType objects
*** LDRAW DAT RENDERER CLASSES ***
abstract class LDrawRenderer - ancestor class for renderers
+ class LDrawRendererOrthographic - renders LDraw.exe style
*** MATH CLASSES ***
abstract class MatrixNxN - ancestor class for transformation matrices
+ class Matrix4x4 - a 4x4 transformation matrix
abstract class VectorN - ancestor class for vectors
+ class Vector3 - a 3-element vector, useful for coordinates, euler angles,
RGB color values, etc.
+ class Vector4 - a 4-element vector, useful for 4x4 Matrix math,
quaternions, etc.
Cheers,
- jsproat
|
|
Message has 4 Replies: | | Re: A comprehensive LDraw object model
|
| (...) Aren't all of these classes Abstract? I mean this is only a template for implementing a Class Library right? Are you planning on actually filling in the code also? or just defining the interfaces? (...) So far you've got a few more levels in (...) (23 years ago, 10-Feb-02, to lugnet.cad.dev)
| | | Re: A comprehensive LDraw object model
|
| I like this. I don't think I can contribute that much. I would like to though. I have been working in Java with my animation program ((URL) and I can contribute a class for LineType1. Most useful is a rotation function that I would like to think is (...) (23 years ago, 10-Feb-02, to lugnet.cad.dev)
| | | Re: A comprehensive LDraw object model
|
| (...) <snip> First, this is a nifty idea. Objectifying this is long overdue. But I was struck wondering, is this trying to objectify the current dat format as it is, or an ideal one as we would like to see it be... Also, are you a fan of the MVC (...) (23 years ago, 10-Feb-02, to lugnet.cad.dev)
| | | Re: A comprehensive LDraw object model
|
| "Sproaticus" <jsproat@io.com> schrieb im Newsbeitrag news:GrA7CA.24y@lugnet.com... (...) Shall this lines be only container classes or shall they have the working code? If they have working code, they are heavily depending on the target system (...) (23 years ago, 10-Feb-02, to lugnet.cad.dev)
|
Message is in Reply To:
| | A comprehensive LDraw object model
|
| Hey folks, I think we need to figure out a comprehensive LDraw object model. Something that can be presented simply, and easily ported to various modern programming languages. A comprehensive class diagram would be a great start, and some code to (...) (23 years ago, 9-Feb-02, to lugnet.cad.dev)
|
30 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|