Scene Browser Beginnings

2007-06-15

Scene Browser Beginnings

Permalink 01:33:06 am, Categories: World Editor  

Sectors in flarge

The scene browser shows all of the sectors in flarge.

Here's how it works:
A plugin implementing wrappers around all of the (useful) CS interfaces is loaded. It registers interface wrapper factories with an iInterfaceWrapperManager. This manager keeps a hash of scfInterfaceID's mapped to iInterfaceWrapperFactory's.
Another plugin listens for when the map is loaded (which the editor tells it), then creates an EditorObject for all of the sectors in the engine and adds it to the editor's object list.

EditorObject, using SCF metadata, goes through each interface implemented by the object it's wrapping and requests the iInterfaceWrapperFactory for the given interface. If there's no wrapper for that interface, it ignores it. It then instantiates that wrapper and pushes it onto an array. While it's going through, it finds an interface wrapper that has a name attribute, and stores that for future reference, when something wants to call Get/SetName. It does the same thing for a parent attribute. It also figures out the type (instance, factory, or unknown) and stores that.

After adding an object to the object list, the scene browser panel will get an Object Added event, and it will put the given object into the tree, using EditorObject to get the name and parent (for the hierarchy).

I haven't implemented putting the objects into the correct hierarchy in the Scene Browser panel yet, nor have I implemented object name editing or re-parenting via dragging. Also, scene browser should have a way of showing an icon and grouping (or sorting) the different objects.

Right now, I've only implemented an interface wrapper around iObject, since that provides the name for every engine object. But eventually, I'll need wrappers for every useful object, since I will need to know their properties for the property editor.

This was partly just a proof-of-concept right now. There are a few functions that could have a better place at the moment.

Tomorrow:

Add the rest of objects from engine on map load (other than sectors)
Clean up some of the nasty parts
Respect object hierarchy in scene browser
Implement name editing in scene browser
Implement re-parenting

Trackback address for this post:

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

Comments, Trackbacks, Pingbacks:

Comment from: Rodolfo [Visitor] · http://eyesalice081.blog.com/
I love this website very much, It_s a rattling good spot to examine and receive info.
_What is a panel Several the actual unwilling, selected from your unfit, to
accomplish the unwanted._ by simply Richard Harkness.
PermalinkPermalink 2013-04-13 @ 05:00
Comment from: Penny [Visitor] · http://invalidy.org/DollieGui
What's up, this weekend is good in support of me, for the reason that this moment i am reading this fantastic informative post here at my residence.
PermalinkPermalink 2013-04-28 @ 10:53
Comment from: Haarausfall [Visitor] · http://docfred.net/docfred/Oxwall/link/462
Ich kaum verlassen Bemerkungen , aber nach dem Lesen ein paar
der Kommentare hier iceeey Blog - Scene Browser Anfänge .
Ich eigentlich noch ein paar Fragen für Sie, wenn es Ihnen nichts ausmacht .
Is it just me oder haben einige dieser Bemerkungen erscheinen wie sie von hirntot Menschen übrig?

:-P Und wenn Sie auf zusätzliche soziale Websites Entsendung sind , möchte ich dir folgen.
Könnten Sie eine Liste der vollständigen URLs Ihrer öffentlichen Seiten wie Ihre Facebook-Seite , Twitter-Feed , oder LinkedIn-Profil ?
PermalinkPermalink 2013-05-21 @ 17:17
Comment from: haarwuchs [Visitor] · http://concealedcarryweapon.com/activity/p/10327/
It's a shame you don't have a donate button! I'd definitely donate to this superb blog! I suppose for now i'll settle
for bookmarking and adding your RSS feed to my Google account.
I look forward to brand new updates and will talk about this website with my Facebook group.
Chat soon!
PermalinkPermalink 2013-06-07 @ 17:40
Comment from: voyance gratuite par chat [Visitor] · http://supervoyancegratuite.blogspot.fr
Horoscope elisabeth tessier 2010 mon signe astrologique japonais
PermalinkPermalink 2013-07-06 @ 08:50
Comment from: voyance gratuite immediate [Visitor] · http://www.natashasfoodforpaws.com
Astrologie tessier horoscope gratuit scorpion 2012
PermalinkPermalink 2013-08-20 @ 09:51
Comment from: voyant gratuit [Visitor] · http://www.monvoyant.org
Chritine haas horoscope de la semaine vierge
PermalinkPermalink 2013-08-23 @ 17:51
Comment from: voyance en direct [Visitor] · http://www.voyantpartelephone.org
Horoscope du jour gratuit 2011 tarot des druides gratuit
PermalinkPermalink 2013-08-27 @ 17:30

Comments are not allowed from anonymous visitors.

October 2014
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Search

Categories

Archives

Misc

XML Feeds

What is this?

powered by
b2evolution