AcDbEntity::highlight() + "thicken" ??

AcDbEntity::highlight() + "thicken" ??

Anonymous
Not applicable
424 Views
2 Replies
Message 1 of 3

AcDbEntity::highlight() + "thicken" ??

Anonymous
Not applicable
Object highlighting is fundamentally broken, because
objects whose effective color does not contrast with
the display background (or the color of something that
is being drawn 'below' them), become even less visible
and when they are highlighted.

Duh.

Before I go digging, I was wondering if anyone is aware
of any documented or undocumented API that can do the
equivalent of 'rollover highlighting' where the object is
highlighted and drawn in the 'thickened' state ?


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com
0 Likes
425 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Tony:

I don't have anything concrete, but I'll offer some food for thought. The
graphics subsystem supports a visual style id as a subentity trait. A
custom object could set an appropriate visual style that mimics the rollover
highlighting in its worldDraw/viewportDraw functions. If it's not a custom
object, things get a lot more complicated. I'm not aware of any exposed API
for setting entity-specific visual styles, only the standard viewport-wide
visual style API. If you want to do some digging, another avenue to explore
would be the AcGiDrawable::RolloverHit() function. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com


"Tony Tanzillo" wrote in message
news:5737455@discussion.autodesk.com...
Object highlighting is fundamentally broken, because
objects whose effective color does not contrast with
the display background (or the color of something that
is being drawn 'below' them), become even less visible
and when they are highlighted.

Duh.

Before I go digging, I was wondering if anyone is aware
of any documented or undocumented API that can do the
equivalent of 'rollover highlighting' where the object is
highlighted and drawn in the 'thickened' state ?
[...]
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks Owen.

I should've RTFM before I posted, as there are
acgs global functions to get/set highlight color,
pattern, and lineweight.

Problem solved.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Owen Wengerd" wrote in message news:5737479@discussion.autodesk.com...
Tony:

I don't have anything concrete, but I'll offer some food for thought. The
graphics subsystem supports a visual style id as a subentity trait. A
custom object could set an appropriate visual style that mimics the rollover
highlighting in its worldDraw/viewportDraw functions. If it's not a custom
object, things get a lot more complicated. I'm not aware of any exposed API
for setting entity-specific visual styles, only the standard viewport-wide
visual style API. If you want to do some digging, another avenue to explore
would be the AcGiDrawable::RolloverHit() function. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com


"Tony Tanzillo" wrote in message
news:5737455@discussion.autodesk.com...
Object highlighting is fundamentally broken, because
objects whose effective color does not contrast with
the display background (or the color of something that
is being drawn 'below' them), become even less visible
and when they are highlighted.

Duh.

Before I go digging, I was wondering if anyone is aware
of any documented or undocumented API that can do the
equivalent of 'rollover highlighting' where the object is
highlighted and drawn in the 'thickened' state ?
[...]
0 Likes