Click here to Skip to main content
15,888,579 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: serial port sniffer ( spy or monitor) Pin
mikanu5-Mar-06 11:36
mikanu5-Mar-06 11:36 
Questionopengl point selection Pin
giotis821-Mar-06 23:03
giotis821-Mar-06 23:03 
AnswerRe: opengl point selection Pin
Ingo2-Mar-06 2:37
Ingo2-Mar-06 2:37 
GeneralRe: opengl point selection Pin
giotis822-Mar-06 2:46
giotis822-Mar-06 2:46 
GeneralRe: opengl point selection Pin
Ingo2-Mar-06 2:59
Ingo2-Mar-06 2:59 
AnswerRe: opengl point selection Pin
El Corazon2-Mar-06 10:13
El Corazon2-Mar-06 10:13 
GeneralRe: opengl point selection Pin
Ingo2-Mar-06 23:08
Ingo2-Mar-06 23:08 
GeneralRe: opengl point selection Pin
El Corazon3-Mar-06 3:56
El Corazon3-Mar-06 3:56 
ihoecken wrote:
No it doesn't. You can develop a hit test for lines too. Just make a line a little bit thicker when projecting it to your textmatrix (just anti-aliasing but with non different values). This works properly good.


Actually I had forgotten about a method that allows you to pick any shape, any line or point in multiple objects easily, without lifting a single matrix.... It was presented at one of the conferences I went to, but I forget which one.

Given that you can do "off screen rendering" to pbuffers, simply color every object you want to choose slightly different. Given 24bit color that gives you 16777216 distinguishable values when anti-alias is not used (in this case also turn off transparency and any other possible mixing values). Now render the image into a pbuffer and compare the color value to where your mouse is pointed, instant table lookup to the object you want whether it be line or point. It's fast, reliable, requires no CPU overhead and can be cut in only during a mouse-press so that it occupies a single frame overhead (actually less since it never actually has to be copied to the screen).

_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
QuestionUsing app.config Pin
Red Stateler28-Feb-06 4:49
Red Stateler28-Feb-06 4:49 
AnswerRe: Using app.config Pin
George L. Jackson28-Feb-06 9:44
George L. Jackson28-Feb-06 9:44 
GeneralRe: Using app.config Pin
Red Stateler28-Feb-06 9:53
Red Stateler28-Feb-06 9:53 
Question[Message Deleted] Pin
Harrison Ford26-Feb-06 21:55
Harrison Ford26-Feb-06 21:55 
AnswerRe: How to convert a decimal value to a hexadecimal value? Pin
Cedric Moonen26-Feb-06 22:11
Cedric Moonen26-Feb-06 22:11 
General[Message Deleted] Pin
Harrison Ford26-Feb-06 22:19
Harrison Ford26-Feb-06 22:19 
GeneralRe: How to convert an integer value to a hexadecimal value? Pin
Cedric Moonen26-Feb-06 22:24
Cedric Moonen26-Feb-06 22:24 
GeneralRe: How to convert an integer value to a hexadecimal value? Pin
toxcct27-Feb-06 0:04
toxcct27-Feb-06 0:04 
GeneralRe: How to convert an integer value to a hexadecimal value? Pin
Peter Charlesworth28-Feb-06 8:05
Peter Charlesworth28-Feb-06 8:05 
AnswerRe: [Message Deleted] Pin
Peter Charlesworth27-Feb-06 2:14
Peter Charlesworth27-Feb-06 2:14 
GeneralRe: [Message Deleted] Pin
toxcct27-Feb-06 6:23
toxcct27-Feb-06 6:23 
GeneralRe: [Message Deleted] Pin
Peter Charlesworth27-Feb-06 6:46
Peter Charlesworth27-Feb-06 6:46 
GeneralRe: [Message Deleted] Pin
toxcct27-Feb-06 6:47
toxcct27-Feb-06 6:47 
QuestionGet 3rd character. Pin
foolygoofy2626-Feb-06 9:21
foolygoofy2626-Feb-06 9:21 
AnswerRe: Get 3rd character. Pin
Christian Graus26-Feb-06 10:03
protectorChristian Graus26-Feb-06 10:03 
AnswerRe: Get 3rd character. Pin
Saksida Bojan28-Feb-06 6:30
Saksida Bojan28-Feb-06 6:30 
QuestionDAO in .NET application Pin
Ahmed Al-Lakani26-Feb-06 7:24
Ahmed Al-Lakani26-Feb-06 7:24 

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.