X

Help Articles are product support tips and information straight from the NV5 Geospatial Technical Support team developed to help you use our products to their fullest potential.



3907 Rate this article:
No rating

A Simple Surface Object Example with XOBJVIEW

How to make a simple IDLgrSurface object and display it using XOBJVIEW.  

This is an example of a very basic surface object using XOBJVIEW.

The XOBJVIEW procedure is used to quickly and easily view and manipulate IDL Object Graphics on screen. It displays given objects in an IDL widget with toolbar buttons and menus providing functionality for manipulating, printing, and exporting the resulting graphic. The mouse can be used to rotate, scale, translate, and select the graphic objects.

As you can see, you just need to
1. Create some data.
2. Create your model and surface objects.
3. Pass the model object to XOBJVIEW

 

PRO mySurface
 
; create  data
data = dist(100)
 
; create your model and your surface
oModel = obj_new('IDLgrModel')
oSurface = obj_new('IDLgrSurface', data, STYLE=2, $
             COLOR = [0, 0, 255])
oModel->Add, oSurface
 
; rotate for better view of your surface
oModel->rotate, [1, 0, 0], -90
oModel->rotate, [0, 1, 0], 30
 
; pass your model object to XOBJVIEW
XOBJVIEW, oModel
 
end


Review on 12/31/2013 MM

Please login or register to post comments.
Featured

End-of-Life Policy Enforcement for ENVI 5.3 / IDL 8.5 and Earlier Versions

5/6/2024

April 1, 2024 Dear ENVI/IDL Customer,  We are reaching out to notify you of our supported... more »

How to Upgrade licenses to ENVI 6.x / IDL 9.x

12/5/2023

What is the new Upgrade function? Starting with ENVI 6.0 and IDL 9.0, we have implemented an... more »

What to do if the 'License Administrator - License Server' for the Next-Generation License Server does not start?

6/13/2023

Background: With the release of ENVI 5.7 & IDL 8.9 and the corresponding Next-Generation licensing... more »

Next-Generation Licensing FAQ

4/28/2023

  NV5 Geospatial has adopted a new licensing technology for all future releases of our ENVI, IDL... more »

The IDL Virtual Machine

6/6/2013

What is the IDL Virtual Machine? An IDL Virtual Machine is a runtime version of IDL that can... more »