Click here to Skip to main content
15,899,661 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionBasic tier object design questions Pin
Jon_Boy27-Jan-11 1:53
Jon_Boy27-Jan-11 1:53 
AnswerRe: Basic tier object design questions Pin
dan!sh 27-Jan-11 6:30
professional dan!sh 27-Jan-11 6:30 
AnswerRe: Basic tier object design questions Pin
Ian Shlasko27-Jan-11 7:29
Ian Shlasko27-Jan-11 7:29 
GeneralRe: Basic tier object design questions Pin
Jon_Boy27-Jan-11 7:48
Jon_Boy27-Jan-11 7:48 
AnswerRe: Basic tier object design questions Pin
TheGreatAndPowerfulOz27-Jan-11 11:54
TheGreatAndPowerfulOz27-Jan-11 11:54 
QuestionGDI+ scene graph, retrieve absolute transform from local transform Pin
norrisMiou26-Jan-11 16:49
norrisMiou26-Jan-11 16:49 
AnswerRe: GDI+ scene graph, retrieve absolute transform from local transform Pin
Luc Pattyn26-Jan-11 17:04
sitebuilderLuc Pattyn26-Jan-11 17:04 
GeneralRe: GDI+ scene graph, retrieve absolute transform from local transform Pin
norrisMiou27-Jan-11 9:20
norrisMiou27-Jan-11 9:20 
Yes, I know Graphics.Transform / ResetTransform and Save / Restore
This is a pseudo code for my main drawing function ...

Private Sub MainDrawing
  For each bone in bones list (bone class inherits TreeNode.)
    -Save the Graphics tranform (Graphics.Save)
    -Call a recursive function (DrawBonesRecursively)
     ->DrawBonesRecursively(e.Graphics, bone)
    -Restore the original Graphics tranform (Graphics.Restore)
  End For
End Sub

Private Sub DrawBonesRecursively(g as Graphics,bone as Bone)
  -Get the LOCAL matrix of the bone
  -Rotate and Translate Graphics transform with LOCAL matrix values
  -Get the untransformed GraphicsPath of my bone
  -Draw it
  For each childBone in bone.Nodes
   -Call this sub itself for recursion. For "bone" argument, I pass "bone.
  End For
End Sub


My drawing function only need the local coordinates of each bone. So, I can get/set easilly the LOCAL transform, and I'm only able to compute the absolute transform and read it, but if I want to set it with absolute values, I must convert it with local values to make my function drawing.

Do you understand my problem ? Sorry I'm not very comfortable with the kind of explanations in english
GeneralRe: GDI+ scene graph, retrieve absolute transform from local transform Pin
Luc Pattyn27-Jan-11 9:30
sitebuilderLuc Pattyn27-Jan-11 9:30 
QuestionTo bind or not to bind? Pin
Sander Rossel26-Jan-11 4:05
professionalSander Rossel26-Jan-11 4:05 
AnswerRe: To bind or not to bind? Pin
Dave Kreskowiak26-Jan-11 4:23
mveDave Kreskowiak26-Jan-11 4:23 
GeneralRe: To bind or not to bind? Pin
Sander Rossel26-Jan-11 6:56
professionalSander Rossel26-Jan-11 6:56 
GeneralRe: To bind or not to bind? Pin
Dan Mos26-Jan-11 9:23
Dan Mos26-Jan-11 9:23 
GeneralRe: To bind or not to bind? Pin
Dave Kreskowiak26-Jan-11 11:07
mveDave Kreskowiak26-Jan-11 11:07 
AnswerRe: To bind or not to bind? Pin
Dan Mos26-Jan-11 5:36
Dan Mos26-Jan-11 5:36 
GeneralRe: To bind or not to bind? Pin
Sander Rossel26-Jan-11 7:05
professionalSander Rossel26-Jan-11 7:05 
AnswerRe: To bind or not to bind? Pin
Luc Pattyn26-Jan-11 7:27
sitebuilderLuc Pattyn26-Jan-11 7:27 
GeneralRe: To bind or not to bind? Pin
DaveyM6926-Jan-11 8:29
professionalDaveyM6926-Jan-11 8:29 
GeneralRe: To bind or not to bind? Pin
Dan Mos26-Jan-11 8:56
Dan Mos26-Jan-11 8:56 
JokeRe: To bind or not to bind? Pin
Sander Rossel26-Jan-11 9:43
professionalSander Rossel26-Jan-11 9:43 
GeneralRe: To bind or not to bind? Pin
Pete O'Hanlon26-Jan-11 10:01
mvePete O'Hanlon26-Jan-11 10:01 
AnswerRe: To bind or not to bind? Pin
Luc Pattyn26-Jan-11 10:09
sitebuilderLuc Pattyn26-Jan-11 10:09 
GeneralRe: To bind or not to bind? Pin
Sander Rossel26-Jan-11 10:24
professionalSander Rossel26-Jan-11 10:24 
AnswerRe: To bind or not to bind? Pin
Luc Pattyn26-Jan-11 10:43
sitebuilderLuc Pattyn26-Jan-11 10:43 
JokeRe: To bind or not to bind? Pin
Dan Mos26-Jan-11 8:54
Dan Mos26-Jan-11 8:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.