All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

SPAadm Class ADM_srf_icon2

SPAbase.ACIS_OBJECT
  |
  +---SPAds.DM_icon
    |
    +---SPAdmicon.DM_default_icon
      |
      +---ADM_srf_icon2
 

Usage: you must use this class as is. You should never derive it.


public class ADM_srf_icon2

This class is used for drawing deformable surface tag objects in ACIS deformable modeling.

Role: The ADM_srf_icon2 is part of the admicon library. This icon owns an ACIS INDEXED_MESH, which it updates to depict the current state of a deformable surface. It draws independently of ACIS drawing.

Related classes: The DM_def_icon_cmd_args and the DM_def_icon_query_args encapsulate many of the methods inherited from the DM_default_icon interface. Thus the Set_state and Query methods can be used to perform casting, when different libraries of icons are mixed. The DM_def_icon_draw_args and the DM_def_icon_cmd_args can be broadcast to icons using the deformable modeling interface methods, such as DM_draw_all_icons and ATTRIB_DM2ACIS::Draw_all_icons.

See also:
DM_cpt_icon


Constructor and Destructor Index


o ADM_srf_icon2()
Public constructor.

Method Index


o Draw(Spatial_abs_hurler&,DM_icon_draw_args&)
Draws this icon.
o Get_colors(DM_dbl_array&)
Queries color data.
o Get_grid(int[2])
Queries discretization grid density.
o Invalidate()
Marks cached data as bad.
o Make_copy(Spatial_abs_hurler&)
Clones method.
o Remesh()
Recalculates mesh (facets).
o Set_colors(double*,int)
Sets color data.
o Set_draw_option(int)
Sets draw options.
o Set_grid(int[2])
Sets discretization grid density.
o Set_icon_width(double)
Sets the icon draw width.
o Set_owner(Spatial_abs_hurler&,DS_dmod*,int)
Sets owner data.
o Tag_object_changed(Spatial_abs_hurler&)
Notification of a state change to the owning tag object.
o Validate()
Updates cached data.

Constructor and Destructor


o ADM_srf_icon2
public ADM_srf_icon2()
Public constructor.

Methods


o Draw
public virtual void Draw(Spatial_abs_hurler& err_handler,
const DM_icon_draw_args& cmd)const
Draws this icon.

Parameters:
err_handler
error handler.
cmd
draw-command object.
o Get_colors
public virtual void Get_colors(DM_dbl_array& data) const
Queries color data.

Parameters:
data
data.
o Get_grid
public virtual void Get_grid(int[2] density)const
Queries discretization grid density.

Parameters:
density
density.
o Invalidate
public virtual void Invalidate()
Marks cached data as bad.
o Make_copy
public virtual DM_icon* Make_copy(Spatial_abs_hurler& err_handler)const
Clones method.

Parameters:
err_handler
error handler.
o Remesh
public virtual void Remesh()
Recalculates mesh (facets).
o Set_colors
public virtual void Set_colors( const double* color,
int num)
Sets color data.

Parameters:
color
colors.
num
number of colors.
o Set_draw_option
public virtual void Set_draw_option(int options)
Sets draw options.

Parameters:
options
options.
o Set_grid
public virtual void Set_grid( const int[2] density)
Sets discretization grid density.

Parameters:
density
density.
o Set_icon_width
public virtual void Set_icon_width(double width)
Sets the icon draw width.

Parameters:
width
width.
o Set_owner
public virtual void Set_owner(Spatial_abs_hurler& err_handler,
DS_dmod* new_dmod,
int new_tag)
Sets owner data.

Role: Also notifies the icon of owner completion, for icon initialization.

Parameters:
err_handler
error handler.
new_dmod
icon owner ID.
new_tag
icon owner ID.
o Tag_object_changed
public virtual void Tag_object_changed(Spatial_abs_hurler& err_handler)
Notification of a state change to the owning tag object.

Parameters:
err_handler
error handler.
o Validate
public virtual void Validate()
Updates cached data.

This object is included in the file: admsrficon2.hxx

Copyright (c) 1989-2007 by Spatial Corp. All rights reserved.