This is an archived, read-only instance of the JaCaVi Trac. This site is no longer actively maintained. Registration and login have been disabled. Content is preserved for reference only.

Opened 18 years ago

Last modified 18 years ago

#5 closed feature

Implement the track view — at Version 10

Reported by: Henrik Heimbuerger Owned by: Henrik Heimbuerger
Priority: major Milestone: MS1: First release (1.0.0)
Component: track Version: pre-1.0
Keywords: track view Cc:

Description (last modified by Henrik Heimbuerger)

Implement the view that shows a track rendered with the SWT GC.

The first version would probably use a static image as background (later to be replaced with individual images of track parts that have been rotated and placed as described by the track file) and draw simple 'cars' (dots or rectangles) on top of that.

Change History (10)

comment:1 Changed 18 years ago by Henrik Heimbuerger

Owner: changed from somebody to Stefanos Papadopoulos

comment:2 Changed 18 years ago by Henrik Heimbuerger

Status: newassigned

comment:4 Changed 18 years ago by Henrik Heimbuerger

Owner: changed from Stefanos Papadopoulos to Henrik Heimbuerger

comment:5 Changed 18 years ago by Henrik Heimbuerger

Status: assignedaccepted

comment:6 Changed 18 years ago by Henrik Heimbuerger

Milestone: MS1: First usable version

comment:7 Changed 18 years ago by SVN

New commit by hheimbuerger (revision [67]):
[In preparation of #18 and #5] Improved in-memory data structures for storing the slot car track.

The Track class has been extended by some methods (most of which aren't implemented yet) and a new class TrackSection? has been created that is supposed to represent one section of the whole track.

Also added three section bitmaps for testing, taken from the track bitmap Fabi found somewhere. These are of course not the final images, only placeholders.

comment:8 Changed 18 years ago by SVN

New commit by hheimbuerger (revision [68]):
[Partial fix for #5] Added early version of a real track view.

An early version of the track view has been created. While this is in fact already using seperate images for the sections and does take its track data from the in-memory data structure, how it is using the data structure has to be overhauled majorly in the future. Also, the track is currently defined inside the track view for testing purposes.

It's already possible to pan the view by holding the right mouse button and the display is also double-buffered.

comment:9 Changed 18 years ago by Henrik Heimbuerger

http://forums.sun.com/thread.jspa?messageID=10307518 might be helpful when rotation by arbitrary angles is needed.

comment:10 Changed 18 years ago by Henrik Heimbuerger

Description: modified (diff)
Summary: Create a proof-of-concept for a track view in SWTImplement the track view
Note: See TracTickets for help on using tickets.