VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



clsPlanet: Class to Draw a Solar System ver 2

by Roger Gilchrist (50 Submissions)
Category: Coding Standards
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (11 Votes)


A single class capable of drawing the solar system from Sun to Pluto (including 1500 asteroids). NEW: Retrograde planets/moons now possible, coloured labels, more comments in code, more accurate numbers, more real moons. You can easily add more or design your own solar system.
. Thanks for inspiration, assistance and support to Peter Wilson whose upload 'A Simple Solar System Simulator, v1.0' https://www.vbcoders.com/vb/scripts/ShowCode.asp?txtCodeId=47973&lngWId=1 inspired this. -------------NOTE--------------------------------- If it runs too slowly reduce the number of asteroids at Private Const AsteroidNumber As Long = 500 . I have run it with up to 5000 but the graphic is not that much different and very slow. ---------UPDATED-------------------------------------------Thanks to Peter Wilson who improved his zooming code and kindly sent it to me.
Upgrade 1 notes: Added a new solar equator view, labels for planets and moons, improved collection based functionality, Asteroids do not display orbits (un-comment piece of code if you like that). All orbits are now eliptical and Pluto has its eccentric orbit . Planets have extra properties (oblate= Flat). ------------ CODERS this class automatically produces the labels it needs to operate without a seed control. Cute Trick extended on article in Computer Shopper Jun 2003.

Rate clsPlanet: Class to Draw a Solar System ver 2

Download clsPlanet: Class to Draw a Solar System ver 2

Download clsPlanet: Class to Draw a Solar System ver 2 (10 KB)

clsPlanet: Class to Draw a Solar System ver 2 Comments

No comments have been posted about clsPlanet: Class to Draw a Solar System ver 2. Why not be the first to post a comment about clsPlanet: Class to Draw a Solar System ver 2.

Post your comment

Subject:
Message:
0/1000 characters