
Fri, 04/15/2016 - 13:31
Forums:
Hi,
I already replaced my own RubberBand solution (implemented with Visual3d_Layer) by the new AIS_RubberBand. I want to follow the same approach with my on-screen crosshair (following the mouse cursor...) but there is certainly no AIS_CrossHair or something else.
My question is: what is the recommended approach to draw an on-screen crosshair in OCCT 7 with minimal latency (without redrawing entire 3D viewer content)?
Best regards
Thorsten
Fri, 04/15/2016 - 14:47
Dear Thorsten,
If the issue is critical for you you contact us via the Contact Form - http://www.opencascade.com/contact.
We will try to help you.
Best regards
FSR
Mon, 04/18/2016 - 09:49
Thanks,
3D Power Visualization pvt. Ltd
http://threedpower.com
3D Power is an architectural Visualization Studio, expert in 3D Photorealistic Rendering, 3D Architectural Walkthrough & 3D Interior Designing.
Our Services:
-3D Architectural designs
-3D House architectural design
-3D Architectural elevations
-3D Architectural house plans
-3D Architectural floor plans
-3D Architectural Model
-3D Modeling services
- Elevation & Interior Designing
- Media, Brochure & Campaign Design
Wed, 04/20/2016 - 11:39
This issue isn't critical for me. I chose this as an example for the new "immediate mode rendering features". I would really like to understand how this works for newer OCCT versions.
Wed, 04/20/2016 - 14:13
Dear Thorsten,
If you want to learn OCCT features more deeply you can consider
OCCT E-Learning courses (Fundamentals for example).
Best regards
FSR
Wed, 04/20/2016 - 15:28
Besides some hints can be found in this article: : http://dev.opencascade.org/index.php?q=node/1080
Best regards
FSR
Tue, 04/26/2016 - 17:31
Ok, I think i got it working.
1) Create a new Class "AIS_CrossCursor", inherit from AIS_InteractiveObject.
2) Set Layer and TransformPersistence in the constructor
3) Declare a new member variables for the drawing
4) Setup the Drawing in the constructor:
5) Create a new method to set the cross center (width/height are width/height of your View in px, centerX, centerY is the mouse pos)
6) Override the "Compute" Method
That's it.
Usage:
To extend your Class (LineType, LineColor, etc.) have a look at the source code of AIS_RubberBand (AIS_RubberBand.cxx).
Best regards
Thorsten