Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [C++ CONNECT] mdlRaster_eventSynchronize

$
0
0

YongAn is correct you should use DgnRaster, DgnRasterCollection, and DgnRasterVector classes.

mdlRaster_eventGroupStart and mdlRaster_eventGroupEnd are marked as deprecated (as should be: mdlRaster_eventSynchronize) in:  ..\include\Mstn\MdlApi\deprecated10_0.fdf

For raster event notification see IRasterEventHandler in:  ..\include\RasterCore\IRasterEvents.h

Where the new raster classes lack any older functionality and would require you to migrate your mdlRaster() functions forward, consider looking for updated function signature information in:

 ..\doc\MicroStationAPI.chm.  This help file is built directly from the comments and descriptions available in the actual header include files.

Then see for example, Help Topic: "Raster Functions", and pick a function having a description; e.g. mdlRaster_systemAllRasterContainerByModelGet; for a sample function description and code snip like:

Retrieves a list of all currently known raster handle that belong to a specific model and/or its child models according to the handle state flags specified.

                You might want to use the DgnRasterCollection instead if you don't need a copy of the list:

                ModelRefIterator modelItr(pRootModel, iteratorType, depth);     
                for (DgnModelRefP modelRefP = modelItr.GetFirst (); modelRefP; modelRefP = modelItr.GetNext ())
                    {
                    for each(DgnRasterP rasterP in DgnRasterCollection::GetRasters(modelRefP))
                        {
                        if(NULL != rasterP)
                            //Do something;
                        }
                }

HTH,
Bob


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>