Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 309013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:42:11+00:00 2026-05-12T07:42:11+00:00

I am trying to determine that if (before I start) on a new project

  • 0

I am trying to determine that if (before I start) on a new project I can pick some suitable patterns which will help with development as the project gets more complicated.

The Scenario

To have an application that draws ‘simple’ lines on the screen. Ideally encompassed into a ‘Render Engine’ which I can package into Silverlight, WPF demo applications etc.

I also require editor application that uses the render engine to do the bulk of the displaying, however provides additional functionality like control points for moving the lines about the screen & Dialogs for changing the colours of the lines etc.

The Goal

To keep the render engine specalised and efficient. The editor should be able to ‘inject’ the additional functionality (i.e. display of control points) into the objects used by the rendering engine, or into the render engine itself. I don’t want to code any editor specific code into the render engine.

My thoughts so far

I’m thinking of using an encapsulation/template pattern for the objects that will be used by the rendering engine, somehow allowing the editor application to supply a class to the object which ‘tacks on’ the functionality for the control points (and for example the event handling for moving of the control points).

My reason behind liking this idea is that the rendering engine never need know about the environment in which it is working. The editor can be changed extensively without ever having to change the rendering engine (hopefully).

But….

I may be wrong, if anyone can see any pitfalls, or has experience of better ways to tackling this problem I would love to hear them!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T07:42:11+00:00Added an answer on May 12, 2026 at 7:42 am

    I agree with Charlie that you should start with a simple design prototype and extend it as needed (that’s how I started with my map rendering engine). I can give you a few suggestions though:

    • Separate the drawing engine from the rest of the code (here’s an example how). By the drawing engine I mean the code that actually draws something on the screen/bitmap. It should consume drawing primitives, not some higher-level entities. This way you’ll be able to switch the drawing engine easily (example: SVG, PDF, GDI, WPF…)
    • If you want to have an editor, one of the patterns that are useful is the State pattern
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For a game I'm trying to determine the frequency that a certain # will
I am trying to write a method that will determine the closest date chronlogically,
I'm trying to combine two queries in order to determine which aircraft will be
I am trying to determine the performance of a piece of generated SQL that
I am trying to determine the size of a UITableCellView. The reason being that
What I'm trying to achieve is to determine if the Postscript that I'm parsing
I'm trying to write a function that is able to determine whether a string
I'm trying to create a form that based on the users input would determine
I'm trying to determine when an NSOpenPanel is closing before it actually closes. I
I am trying to determine if MY xsl:fo generated PDF file will exceed one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.