Re: [Dxfreader-info] Dxfreader-info Digest, Vol 1, Issue 3
Status: Beta
Brought to you by:
allandaly
|
From: Michael C. <mic...@gm...> - 2009-02-28 16:24:55
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Will do. Thanks for looking into that for me. Mike On Feb 28, 2009, at 10:09 AM, dxf...@li... wrote: > Send Dxfreader-info mailing list submissions to > dxf...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/dxfreader-info > or, via email, send a message with subject or body 'help' to > dxf...@li... > > You can reach the person managing the list at > dxf...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dxfreader-info digest..." > > > Today's Topics: > > 1. DXFReader with delegates? (Michael Caron) > 2. entity reading process (Michael Caron) > 3. Re: DKSimpleDXF (Allan Daly) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 28 Feb 2009 09:37:15 -0600 > From: Michael Caron <mic...@gm...> > Subject: [Dxfreader-info] DXFReader with delegates? > To: dxf...@li... > Message-ID: <262...@gm...> > Content-Type: text/plain; charset="us-ascii" > > Hey list, > > thought it might be cool to add delegates to the DXFReader Model > class. I think that if one wanted to add multi-threading to the > loader, it would be easier that way. The reader could continue > reading, calling delegates as it hits things like entities, header > sections, etc. If the delegate chose to, it could kick off a thread to > do it's processing on that element. The element would still be added > to the model for later if so desired, but the processor would have a > chance to create, say a DK drawing layer and render the element on it, > while the reader is busy reading. I don't know if it would be all that > much of a performance gain though and I'd probably want to do some > profiling before adding it in there, but it's an idea. > > It's kind of a cross between what a SAX and DOM parser is to XML. One > is streaming using callbacks, and the other is model-based. Best of > both worlds. > > Michael > ------------------------------------------------ > mic...@gm... > http://techrad.wordpress.com > http://mrcaron.wordpress.com > > -------------- next part -------------- > An HTML attachment was scrubbed... > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: PGP.sig > Type: application/pgp-signature > Size: 186 bytes > Desc: This is a digitally signed message part > > ------------------------------ > > Message: 2 > Date: Sat, 28 Feb 2009 09:45:27 -0600 > From: Michael Caron <mic...@gm...> > Subject: [Dxfreader-info] entity reading process > To: dxf...@li... > Message-ID: <8BD...@gm...> > Content-Type: text/plain; charset="us-ascii" > > Hi list! > > Just wanted to make sure that I'm going about loading entities > correctly. Seems that when I draw them into a DKDrawingLayer, I get > incorrect directions and line widths (not sure if line widths are part > of the DXF line entity though). > > Process for reading in the DXF File: > BBDXFModel* model = [[BBDXFModel alloc] init]; > [model loadDXFString:dxfFileContents]; > [model getDXFFileStructure]; > [model processEntities]; > > Process for translating LINE entities into DK lines: > > BBDXFEntityLine* line = (BBDXFEntityLine*) entity; > > // Ignoring z coordinates for the moment > NSPoint sp; > sp.x = [[line startPoint] x]; > sp.y = [[line startPoint] y]; > NSPoint ep; > ep.x = [[line endPoint] x]; > ep.y = [[line endPoint] y]; > > DKDrawablePath* dkline = > [[DKDrawablePath alloc] initWithStartingCoordinate:sp > endingCoordinate:ep > grid: > [self gridLayer]]; > return [dkline autorelease]; > > Like I said, it seems that when I render this way, I'm getting weird > directions, though the lines seem to be spatially correct, that is, > they are in the right places relative to each other, just sort of > rotated or something differently. It might be due to an error in > scaling it to microns, however. I haven't looked too far into it. > > I also didn't see anything yet for getting the array of Header > objects. Am I missing something? I will add it if it's not there. It > was late... maybe I just totally overlooked it. Important to get > measurement data from the Header for SonoDraw. > > Cheers. > > Michael > ------------------------------------------------ > mic...@gm... > http://techrad.wordpress.com > http://mrcaron.wordpress.com > > -------------- next part -------------- > An HTML attachment was scrubbed... > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: PGP.sig > Type: application/pgp-signature > Size: 186 bytes > Desc: This is a digitally signed message part > > ------------------------------ > > Message: 3 > Date: Sat, 28 Feb 2009 08:07:59 -0800 > From: Allan Daly <all...@gm...> > Subject: Re: [Dxfreader-info] DKSimpleDXF > To: dxf...@li... > Message-ID: <5DD...@gm...> > Content-Type: text/plain; charset="us-ascii" > > Michael, > > Were you able to get the DKSimpleDXF project to build and run > correctly? > > Your note/problem prompted me to go dig into what caused this issue. > Back when I switched from using the C++ dxflib library to the home- > grown DXFReader framework I created a new branch in the Subversion > directory. The development of both DKSimpleDXF and DXFReader continued > along substantially and I forgot that I created this branch (oops). > When I wrapped up the DKSimpleDXF project I used the old trunk and not > the new branch. That's why nothing made sense to you when you looked > in there. Anyway ... apologies for wasting your time -- but it was an > honest mistake at least. I hope I'm not the first one to have made > that blunder. > > I now have my the Subversion repository correctly reconfigured and > everything right and sane. Along the way I also found the problem with > not including the Nib files, so that's worked out now too. > > I posted a new cleaned-up, much smaller version of the DKSimpleDXF > project at this link: http://brown-bird.net/Projects/dksimpledxf.html. > The file is DKSimpleDXF_v.0.1_r2.zip. > > Everything should work for you now. Please let me know if you're able > to get this to build and run so I know if this is the right process to > use in the future. > > -Allan > > > On Feb 27, 2009, at 4:50 PM, Allan Daly wrote: > >> I re-zipped and re-posted the DKSimpleDXF archive. Give it a try now >> and let me know if it works. >> >> link: http://brown-bird.net/Projects/dksimpledxf.html >> >> -Allan >> >> On Feb 27, 2009, at 4:33 PM, Allan Daly wrote: >> >>> I was wondering if that would happen. I do not have tons of >>> experience wrapping up Xcode projects for distribution like this. >>> Can you give me any tips or advice on how to make sure I get >>> everything? >>> >>> Can you send me the build results error log so I can see >>> specifically what is missing. In the mean time I'll try to figure >>> it out and re-post the zip archive. >>> >>> I have everything set up to build in the DrawKit directory. Did you >>> see that and is that working for you? >>> >>> -Allan >>> >>> >>> On Feb 27, 2009, at 3:57 PM, Michael Caron wrote: >>> >>>> Hi Allan, >>>> >>>> I grabbed the source from your site for the DKSimpleDXF and I >>>> can't get it to build correctly. I'm linking properly with the DK >>>> project, but what's missing are some png's, the MainMenu.nib >>>> English (can't even open MainMenu.nib). >>>> >>>> Do I need first to grab Graham's test app to get those, sincd DSD >>>> is based off of that? >>>> >>>> Michael >>>> ------------------------------------------------ >>>> mic...@gm... >>>> http://techrad.wordpress.com >>>> http://mrcaron.wordpress.com >>>> >>> >> > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source > code: SFAD > http://p.sf.net/sfu/XcvMzF8H > > ------------------------------ > > _______________________________________________ > Dxfreader-info mailing list > Dxf...@li... > https://lists.sourceforge.net/lists/listinfo/dxfreader-info > > > End of Dxfreader-info Digest, Vol 1, Issue 3 > ******************************************** Michael - ------------------------------------------------ mic...@gm... http://techrad.wordpress.com http://mrcaron.wordpress.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFJqWVP5CEAr1NK/dQRAraAAKCQLcpwDPqsUpKSnHydIpQ7PtCn9ACfTTKd LjNhBH6NShDxq5+raA1bjBM= =bNQk -----END PGP SIGNATURE----- |