rvcstyle.h File Reference

<mi32/rvcstyle.h> Definitions for Style objects More...

#include <mi32/elemstyl.h>
#include <mi32/rvcdefns.h>

Include dependency graph for rvcstyle.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  RVC

Classes

struct  BITMAPPATTHDR
 Bitmap pattern header. More...
struct  HATCHPATTELEM
 Hatch pattern element structure. More...
struct  HATCHPATTHDR
 Hatch pattern header. More...
struct  LINEPATTELEM
struct  LINEPATTHDR
 Line pattern header. More...
struct  RVCLINESTYLE
 Structure for line drawing style. More...
struct  RVCPATTHDR
 Information common to all patterns / symbols. More...
struct  RVCPOINTSTYLE
 Structure for point drawing style. More...
struct  RVCPOLYGONSTYLE
 Structure for polygon drawing style. More...
struct  RVCSTYLEINFO
 Definition for style object header. More...
struct  RVCTEXTSTYLE
 Structure for text drawing style. More...
union  SYMBOLDATA
struct  SYMBOLELEM
 Symbol element structure. More...
struct  SYMBOLHDR
 Symbol header. More...

Defines

#define HATCHPATTELEM_Last   2
#define HATCHPATTELEM_LinePattern   1
#define HATCHPATTELEM_Simple   0
#define HATCHPATTELEM_SolidFill   2
#define LINEPATTELEM_Circle   2
#define LINEPATTELEM_CrossLine   1
#define LINEPATTELEM_Last   4
#define LINEPATTELEM_Line   0
#define LINEPATTELEM_Polygon   4
#define LINEPATTELEM_PolyLine   3
#define LINEPATTFLAG_CapRound   0x0008
#define LINEPATTFLAG_Filled   0x0001
#define LINEPATTFLAG_JoinBevel   0x0004
#define LINEPATTFLAG_JoinMiter   0x0002
#define MfCloseStyle(_id, _info)   _MfStyleClose((_id),(_info),sizeof(RVCSTYLEINFO))
#define MfFindStyle(_id, _t, _s, _n, _buf)   MfStyleLocate((_id),(_t),(_s),(_n))
#define MfMakeStyle(_fd, _info, _fl)   _MfStyleMake((_fd),(_info),sizeof(RVCSTYLEINFO),(_fl))
#define MfOpenStyle(_fd, _oi, _info, _fl)   _MfStyleOpen((_fd),(_oi),(_info),sizeof(RVCSTYLEINFO),(_fl))
#define NUMPATTTYPES   PATTERNTYPE_COUNT
#define NUMSTYLETYPES   STYLETYPE_COUNT
#define PATTCOLOR_Transparent   255
#define PATTCOLOR_UserDefined   254
#define PATTCOLOR_Variable   PATTCOLOR_UserDefined
#define PTSYM_Arc   2
#define PTSYM_ArcChord   4
#define PTSYM_ArcWedge   3
#define PTSYM_Circle   1
#define PTSYM_EArc   6
#define PTSYM_EArcChord   8
#define PTSYM_EArcWedge   7
#define PTSYM_Ellipse   5
#define PTSYM_Last   16
#define PTSYM_Line   9
#define PTSYM_NULL   0
#define PTSYM_Point   11
#define PTSYM_Polygon   10
#define PTSYM_Polygons   15
#define PTSYM_Rectangle   14
#define PTSYM_Segment   13
#define PTSYM_Splines   16
#define PTSYM_Text   12
#define STYLETYPE_Poly   STYLETYPE_Polygon
#define SYMBOLFLAG_Filled   0x0001
#define SYMBOLHDRFLAG_OldSymbol   (0x8000)

Typedefs

typedef RVCPOLYGONSTYLE RVCPOLYSTYLE

Enumerations

enum  PATTERNTYPE {
  PATTERNTYPE_Symbol = 0, PATTERNTYPE_Line = 1, PATTERNTYPE_Bitmap = 2, PATTERNTYPE_Hatch = 3,
  PATTERNTYPE_COUNT = 4
}
enum  STYLETYPE {
  STYLETYPE_Point = 0, STYLETYPE_Line = 1, STYLETYPE_Polygon = 2, STYLETYPE_Text = 3,
  STYLETYPE_COUNT = 4, STYLETYPE_Empty = 0xFFFF
}

Functions

RVCAPPLIBEXPORT int MfConvertRVCLINESTYLEtoLINESTYLE (int id, RVCLINESTYLE *rvcstyle, LINESTYLE *style, UINT32 flags)
RVCAPPLIBEXPORT int MfConvertRVCPOINTSTYLEtoPOINTSTYLE (int id, RVCPOINTSTYLE *rvcstyle, POINTSTYLE *style, UINT32 flags)
RVCAPPLIBEXPORT int MfConvertRVCPOLYSTYLEtoLINESTYLE (int id, RVCPOLYGONSTYLE *rvcstyle, LINESTYLE *style, UINT32 flags)
RVCAPPLIBEXPORT int MfConvertRVCPOLYSTYLEtoPOLYSTYLE (int id, RVCPOLYGONSTYLE *rvcstyle, POLYSTYLE *style, UINT32 flags)
RVCAPPLIBEXPORT INT32 MfDeletePattern (int id, int type, INT32 num)
RVCAPPLIBEXPORT INT32 MfDeleteStyle (int id, int type, INT32 num)
RVCAPPLIBEXPORT int MfDeleteStyleType (int id, int type)
RVCAPPLIBEXPORT INT32 MfFindFontName (int id, INT32 start, MISTRING &name)
RVCAPPLIBEXPORT INT32 MfFindPattern (int id, int type, INT32 start, const UNICODE *name)
RVCAPPLIBEXPORT int MfFontTransAdd (int id, const MISTRING &name)
RVCAPPLIBEXPORT int MfFontTransIndexToHandle (int id, INT32 num)
RVCAPPLIBEXPORT int MfFontTransIndexToName (int id, INT32 num, MISTRING &name)
RVCAPPLIBEXPORT INT32 MfGetFontNameCount (int id)
RVCAPPLIBEXPORT INT32 MfGetPatternCount (int id, int type)
RVCAPPLIBEXPORT INT32 MfGetPatternMaxSize (int id, int type)
RVCAPPLIBEXPORT INT32 MfGetPatternSize (int id, int type, INT32 num)
RVCAPPLIBEXPORT INT32 MfGetStyleCount (int id, int type)
ERRVALUE MfImportPointSymbolFromCGM (int id, const RVC::OBJECTNAME &SymbolName, const UNICODE *filename)
ERRVALUE MfImportPointSymbolFromCGM (RVC::STYLE &StyleObj, const RVC::OBJECTNAME &SymbolName, const FILEPATH &FilePathCGM)
ERRVALUE MfImportPointSymbolFromTTF (int id, const RVC::OBJECTNAME &SymbolName, const UNICODE *FontName, int GlyphIndex)
ERRVALUE MfImportPointSymbolFromTTF (RVC::STYLE &StyleObj, const RVC::OBJECTNAME &SymbolName, const UNICODE *FontName, int GlyphIndex)
ERRVALUE MfImportPointSymbolsFromCAD (int id, const UNICODE *filename, INT32 inode)
ERRVALUE MfImportPointSymbolsFromCAD (RVC::STYLE &StyleObj, const RVC::OBJITEM &ObjItemCAD)
RVCAPPLIBEXPORT int MfReadPattern (int id, int type, INT32 num, void *data)
RVCAPPLIBEXPORT int MfReadPatternHdr (int id, int type, INT32 num, void *hdr)
RVCAPPLIBEXPORT int MfReadPatternName (int id, int type, INT32 num, RVC::OBJECTNAME &name)
RVCAPPLIBEXPORT int MfReadStyleName (int id, int type, INT32 num, RVC::OBJECTNAME &name)
RVCAPPLIBEXPORT int MfReplaceStyle (int sfindex, INT32 sinode, int dfindex, INT32 dinode)
RVCAPPLIBEXPORT INT32 MfStyleLocate (int id, int type, INT32 start, const UNICODE *name)
int MfStyleRead (int ohandle, INT32 idx, RVCTEXTSTYLE &style)
int MfStyleRead (int ohandle, INT32 idx, RVCPOLYGONSTYLE &style)
int MfStyleRead (int ohandle, INT32 idx, RVCPOINTSTYLE &style)
int MfStyleRead (int ohandle, INT32 idx, RVCLINESTYLE &style)
int MfStyleReadLine (int ohandle, INT32 idx, RVCLINESTYLE *style)
int MfStyleReadPoint (int ohandle, INT32 idx, RVCPOINTSTYLE *style)
int MfStyleReadPoly (int ohandle, INT32 idx, RVCPOLYGONSTYLE *style)
int MfStyleReadText (int ohandle, INT32 idx, RVCTEXTSTYLE *style)
int MfStyleWrite (int ohandle, INT32 idx, RVCTEXTSTYLE &style)
int MfStyleWrite (int ohandle, INT32 idx, RVCPOLYGONSTYLE &style)
int MfStyleWrite (int ohandle, INT32 idx, RVCPOINTSTYLE &style)
int MfStyleWrite (int ohandle, INT32 idx, RVCLINESTYLE &style)
int MfStyleWriteLine (int ohandle, INT32 idx, RVCLINESTYLE *style)
int MfStyleWritePoint (int ohandle, INT32 idx, RVCPOINTSTYLE *style)
int MfStyleWritePoly (int ohandle, INT32 idx, RVCPOLYGONSTYLE *style)
int MfStyleWriteText (int ohandle, INT32 idx, RVCTEXTSTYLE *style)
RVCAPPLIBEXPORT int MfWritePattern (int id, int type, INT32 num, void *data)
RVCAPPLIBEXPORT int MfWritePatternName (int id, int type, INT32 num, RVC::OBJECTNAME &name)


Detailed Description

<mi32/rvcstyle.h> Definitions for Style objects

Definition in file rvcstyle.h.


Define Documentation

#define HATCHPATTELEM_Last   2
 

Last defined type.

Definition at line 547 of file rvcstyle.h.

#define HATCHPATTELEM_LinePattern   1
 

Line pattern.

Definition at line 545 of file rvcstyle.h.

#define HATCHPATTELEM_Simple   0
 

Simple solid lines.

Definition at line 544 of file rvcstyle.h.

#define HATCHPATTELEM_SolidFill   2
 

Fill with solid color.

Definition at line 546 of file rvcstyle.h.

#define LINEPATTELEM_Circle   2
 

Circle - xsize = radius.

Definition at line 502 of file rvcstyle.h.

#define LINEPATTELEM_CrossLine   1
 

Line perpendicular to drawing direction.

Definition at line 501 of file rvcstyle.h.

#define LINEPATTELEM_Last   4
 

Last defined type.

Definition at line 506 of file rvcstyle.h.

#define LINEPATTELEM_Line   0
 

Line parallel to drawing direction, xsize=0 indicates continuous.

Definition at line 500 of file rvcstyle.h.

#define LINEPATTELEM_Polygon   4
 

Polygon.

Definition at line 504 of file rvcstyle.h.

#define LINEPATTELEM_PolyLine   3
 

PolyLine.

Definition at line 503 of file rvcstyle.h.

#define LINEPATTFLAG_CapRound   0x0008
 

Use rounded ends on line segments.

Definition at line 511 of file rvcstyle.h.

#define LINEPATTFLAG_Filled   0x0001
 

Fill (circle and polygon elements).

Definition at line 508 of file rvcstyle.h.

#define LINEPATTFLAG_JoinBevel   0x0004
 

Join "bent" segment beveled.

Definition at line 510 of file rvcstyle.h.

#define LINEPATTFLAG_JoinMiter   0x0002
 

Join "bent" segment mitered (extended).

Definition at line 509 of file rvcstyle.h.

#define MfCloseStyle _id,
_info   )     _MfStyleClose((_id),(_info),sizeof(RVCSTYLEINFO))
 

Definition at line 906 of file rvcstyle.h.

#define MfFindStyle _id,
_t,
_s,
_n,
_buf   )     MfStyleLocate((_id),(_t),(_s),(_n))
 

Definition at line 907 of file rvcstyle.h.

#define MfMakeStyle _fd,
_info,
_fl   )     _MfStyleMake((_fd),(_info),sizeof(RVCSTYLEINFO),(_fl))
 

Definition at line 909 of file rvcstyle.h.

#define MfOpenStyle _fd,
_oi,
_info,
_fl   )     _MfStyleOpen((_fd),(_oi),(_info),sizeof(RVCSTYLEINFO),(_fl))
 

Definition at line 908 of file rvcstyle.h.

#define NUMPATTTYPES   PATTERNTYPE_COUNT
 

Definition at line 435 of file rvcstyle.h.

#define NUMSTYLETYPES   STYLETYPE_COUNT
 

Definition at line 425 of file rvcstyle.h.

#define PATTCOLOR_Transparent   255
 

Definition at line 442 of file rvcstyle.h.

#define PATTCOLOR_UserDefined   254
 

Definition at line 443 of file rvcstyle.h.

#define PATTCOLOR_Variable   PATTCOLOR_UserDefined
 

Definition at line 444 of file rvcstyle.h.

#define PTSYM_Arc   2
 

Definition at line 606 of file rvcstyle.h.

#define PTSYM_ArcChord   4
 

Definition at line 608 of file rvcstyle.h.

#define PTSYM_ArcWedge   3
 

Definition at line 607 of file rvcstyle.h.

#define PTSYM_Circle   1
 

Definition at line 605 of file rvcstyle.h.

#define PTSYM_EArc   6
 

Definition at line 610 of file rvcstyle.h.

#define PTSYM_EArcChord   8
 

Definition at line 612 of file rvcstyle.h.

#define PTSYM_EArcWedge   7
 

Definition at line 611 of file rvcstyle.h.

#define PTSYM_Ellipse   5
 

Definition at line 609 of file rvcstyle.h.

#define PTSYM_Last   16
 

Last element type defined.

Definition at line 622 of file rvcstyle.h.

#define PTSYM_Line   9
 

Definition at line 613 of file rvcstyle.h.

#define PTSYM_NULL   0
 

Empty element, maybe for deletes?

Definition at line 604 of file rvcstyle.h.

#define PTSYM_Point   11
 

Definition at line 615 of file rvcstyle.h.

#define PTSYM_Polygon   10
 

Definition at line 614 of file rvcstyle.h.

#define PTSYM_Polygons   15
 

Multiple polygons with islands.

Definition at line 619 of file rvcstyle.h.

#define PTSYM_Rectangle   14
 

Definition at line 618 of file rvcstyle.h.

#define PTSYM_Segment   13
 

Definition at line 617 of file rvcstyle.h.

#define PTSYM_Splines   16
 

Splines of the type used in TrueType.

Definition at line 620 of file rvcstyle.h.

#define PTSYM_Text   12
 

Definition at line 616 of file rvcstyle.h.

#define STYLETYPE_Poly   STYLETYPE_Polygon
 

Definition at line 424 of file rvcstyle.h.

#define SYMBOLFLAG_Filled   0x0001
 

Fill polygonal elements.

Definition at line 624 of file rvcstyle.h.

#define SYMBOLHDRFLAG_OldSymbol   (0x8000)
 

Definition at line 568 of file rvcstyle.h.


Typedef Documentation

typedef RVCPOLYGONSTYLE RVCPOLYSTYLE
 

Definition at line 382 of file rvcstyle.h.


Enumeration Type Documentation

enum PATTERNTYPE
 

Enumeration for pattern types.

Enumeration values:
PATTERNTYPE_Symbol 
PATTERNTYPE_Line 
PATTERNTYPE_Bitmap 
PATTERNTYPE_Hatch 
PATTERNTYPE_COUNT 

Definition at line 428 of file rvcstyle.h.

enum STYLETYPE
 

Enumeration for style types.

Enumeration values:
STYLETYPE_Point 
STYLETYPE_Line 
STYLETYPE_Polygon 
STYLETYPE_Text 
STYLETYPE_COUNT 
STYLETYPE_Empty 

Definition at line 416 of file rvcstyle.h.


Function Documentation

RVCAPPLIBEXPORT int MfConvertRVCLINESTYLEtoLINESTYLE int  id,
RVCLINESTYLE rvcstyle,
LINESTYLE style,
UINT32  flags
 

Convert an RVC line style structure to a line style structure.

Deprecated:
  • Replaced by RVC::STYLE::Read()
Parameters:
id  Style object
rvcstyle  RVC style structure
style  Non-RVC style structure
flags  Flags (none defined)

RVCAPPLIBEXPORT int MfConvertRVCPOINTSTYLEtoPOINTSTYLE int  id,
RVCPOINTSTYLE rvcstyle,
POINTSTYLE style,
UINT32  flags
 

Convert an RVC point style structure to a point style structure.

Deprecated:
  • Replaced by RVC::STYLE::Read()
Parameters:
id  Style object
rvcstyle  RVC style structure
style  Non-RVC style structure
flags  Flags (none defined)

RVCAPPLIBEXPORT int MfConvertRVCPOLYSTYLEtoLINESTYLE int  id,
RVCPOLYGONSTYLE rvcstyle,
LINESTYLE style,
UINT32  flags
 

Convert an RVC polygon structure to a line style structure.

Deprecated:
  • Replaced by RVC::STYLE::Read()
This function copys the border information from the RVCPOLYGONSTYLE into a LINESTYLE
Parameters:
id  Style object
rvcstyle  RVC style structure
style  Non-RVC style structure
flags  Flags (none defined)

RVCAPPLIBEXPORT int MfConvertRVCPOLYSTYLEtoPOLYSTYLE int  id,
RVCPOLYGONSTYLE rvcstyle,
POLYSTYLE style,
UINT32  flags
 

Convert an RVC polygon style structure to a polygon style structure.

Deprecated:
  • Replaced by RVC::STYLE::Read()
Parameters:
id  Style object
rvcstyle  RVC style structure
style  Non-RVC style structure
flags  Flags (none defined)

RVCAPPLIBEXPORT INT32 MfDeletePattern int  id,
int  type,
INT32  num
 

Delete a pattern from a style object.

Returns:
error code if < 0 or the pattern swapped for the pattern to be deleted Permitted pattern types: PATTERNTYPE_Symbol PATTERNTYPE_Line PATTERNTYPE_Bitmap This routine works by swapping the end pattern with the pattern to delete and then shrinking the object to number of original patterns - 1 This value is what is returned so that any references to that pattern can now be changed.
Parameters:
id  Open style object handle
type  Type of pattern to delete, see below
num  The pattern entry to delete

RVCAPPLIBEXPORT INT32 MfDeleteStyle int  id,
int  type,
INT32  num
 

Delete a style entry from a style object.

Returns:
error code if < 0 or the style swapped for the style to be deleted Permitted style types: STYLETYPE_Point STYLETYPE_Line STYLETYPE_Polygon STYLETYPE_Text This routine works by swapping the end style with the style to delete and then shrinking the object to number of original styles - 1 This value is what is returned so that any references to that style can now be changed.
Parameters:
id  Open style object handle
type  Type of style to delete, see below
num  The style entry to delete

RVCAPPLIBEXPORT int MfDeleteStyleType int  id,
int  type
 

Delete all of the styles of a specific type from a style object.

Permitted style types: STYLETYPE_Point STYLETYPE_Line STYLETYPE_Polygon STYLETYPE_Text

Parameters:
id  Open style object handle
type  Type of style to delete, see below

RVCAPPLIBEXPORT INT32 MfFindFontName int  id,
INT32  start,
MISTRING name
 

Search the font trans table for a specific name, checking specified position first.

Returns:
-1 if not found, >= 0 (font index) if found, or error code.
Parameters:
id  Handle to open style object
start  Place to start the search
name  Name to font to search for

RVCAPPLIBEXPORT INT32 MfFindPattern int  id,
int  type,
INT32  start,
const UNICODE name
 

Search for pattern by name, checking specified position first.

Returns:
pattern entry number if >= 0, -1 if not found, < -1 error Permitted pattern types: PATTERNTYPE_Symbol PATTERNTYPE_Line PATTERNTYPE_Bitmap
Parameters:
id  Open style object handle
type  Type of pattern to search, see below
start  Which pattern entry to start searching at
name  Name of pattern to find

RVCAPPLIBEXPORT int MfFontTransAdd int  id,
const MISTRING name
 

Add a font name to the list of used fonts.

Returns:
index to font name or < 0 if error. NOTE: If the font name already exists then the return value is the index of that font name, otherwise it creates a new entry and returns the new index. See also: MfFindFontName
Parameters:
id  Open style object handle
name  Name of font to add to the list

RVCAPPLIBEXPORT int MfFontTransIndexToHandle int  id,
INT32  num
 

Return a font handle from a given index.

Returns:
error code if < 0 or open font handle
Parameters:
id  Open style object handle
num  Index of font name

RVCAPPLIBEXPORT int MfFontTransIndexToName int  id,
INT32  num,
MISTRING name
 

Return a font name from a given index.

Parameters:
id  Open style object handle
num  Index of font name to read
name  Name

RVCAPPLIBEXPORT INT32 MfGetFontNameCount int  id  ) 
 

Return number of font names.

Returns:
number of font names or < 0 if error
Parameters:
id  Handle to open style object

RVCAPPLIBEXPORT INT32 MfGetPatternCount int  id,
int  type
 

Return the number of patterns stored.

Returns:
number of patterns if >= 0, else error code Defined pattern types: PATTERNTYPE_Symbol Point symbol patterns PATTERNTYPE_Line Line patterns PATTERNTYPE_Bitmap Polygon fill patterns
Parameters:
id  Handle to open style object
type  Type of pattern (PATTTYPE_...)

RVCAPPLIBEXPORT INT32 MfGetPatternMaxSize int  id,
int  type
 

Return the maximum size of a pattern.

Returns:
size of largest pattern if >= 0, else error code Defined pattern types: PATTERNTYPE_Symbol Point symbol patterns PATTERNTYPE_Line Line patterns PATTERNTYPE_Bitmap Polygon fill patterns
Parameters:
id  Handle to open style object
type  Type of pattern (PATTTYPE_...)

RVCAPPLIBEXPORT INT32 MfGetPatternSize int  id,
int  type,
INT32  num
 

Return the size of a particular pattern.

Returns:
size of pattern if >= 0, else error code Defined pattern types: PATTERNTYPE_Symbol Point symbol patterns PATTERNTYPE_Line Line patterns PATTERNTYPE_Bitmap Polygon fill patterns
Parameters:
id  Handle to open style object
type  Type of pattern (PATTTYPE_...)
num  Number of pattern to get the size from

RVCAPPLIBEXPORT INT32 MfGetStyleCount int  id,
int  type
 

Return the number of a particular style.

Returns:
number of styles if >= 0 or error code if < 0. Types of styles: STYLETYPE_Point Point styles STYLETYPE_Line Line styles STYLETYPE_Polygon Polygon styles STYLETYPE_Text Text styles
Parameters:
id  Handle to open style object
type  Type of style (STYLETYPE_...)

ERRVALUE MfImportPointSymbolFromCGM int  id,
const RVC::OBJECTNAME SymbolName,
const UNICODE filename
 

Create a point symbol from a CGM (Computer Graphics Metafile) file.

Parameters:
id  Handle to open style object (must be open for write)
SymbolName  Name to give the new symbol
filename  Name of CGM file to read from

ERRVALUE MfImportPointSymbolFromCGM RVC::STYLE StyleObj,
const RVC::OBJECTNAME SymbolName,
const FILEPATH FilePathCGM
 

Create a point symbol from a CGM (Computer Graphics Metafile) file.

Parameters:
StyleObj  Style object to import to
SymbolName  Name to give the new symbol
FilePathCGM  Path to CGM file

ERRVALUE MfImportPointSymbolFromTTF int  id,
const RVC::OBJECTNAME SymbolName,
const UNICODE FontName,
int  GlyphIndex
 

Create a point symbol from a TrueType glyph.

Parameters:
id  Handle to open style object (must be open for write)
SymbolName  Name to give the new symbol
FontName  Name for TrueType font to read from
GlyphIndex  Glyph Index (not ASCII or Unicode value)

ERRVALUE MfImportPointSymbolFromTTF RVC::STYLE StyleObj,
const RVC::OBJECTNAME SymbolName,
const UNICODE FontName,
int  GlyphIndex
 

Create a point symbol from a TrueType glyph.

Parameters:
StyleObj  Style object to import to
SymbolName  Name to give the new symbol
FontName  Name for TrueType font to read from
GlyphIndex  Glyph Index (not ASCII or Unicode value)

ERRVALUE MfImportPointSymbolsFromCAD int  id,
const UNICODE filename,
INT32  inode
 

Import point symbols from RVC CAD blocks.

If the CAD object only has one block, it is converted to a symbol. If the CAD object has > 1 block, the first block is ignored and all the other blocks are imported using the block names for new symbol names.

Parameters:
id  Handle to open style object (must be open for write)
filename  Name of RVC file to read from
inode  Inode of CAD object

ERRVALUE MfImportPointSymbolsFromCAD RVC::STYLE StyleObj,
const RVC::OBJITEM ObjItemCAD
 

Import point symbols from RVC CAD blocks.

If the CAD object only has one block, it is converted to a symbol. If the CAD object has > 1 block, the first block is ignored and all the other blocks are imported using the block names for new symbol names.

Parameters:
StyleObj  Style object to import to
ObjItemCAD  CAD object to import from

RVCAPPLIBEXPORT int MfReadPattern int  id,
int  type,
INT32  num,
void *  data
 

Read entire pattern into a buffer.

Defined pattern types: PATTERNTYPE_Symbol Point symbol patterns PATTERNTYPE_Line Line patterns PATTERNTYPE_Bitmap Polygon fill patterns

Parameters:
id  Handle to open style object
type  Type of pattern (PATTTYPE_...)
num  Number of pattern to read from
data  Pattern returned (defined in rvcstyle.h)

RVCAPPLIBEXPORT int MfReadPatternHdr int  id,
int  type,
INT32  num,
void *  hdr
 

Read a particular pattern header.

Defined pattern types: PATTERNTYPE_Symbol Point symbol patterns PATTERNTYPE_Line Line patterns PATTERNTYPE_Bitmap Polygon fill patterns

Parameters:
id  Handle to open style object
type  Type of pattern (PATTTYPE_...)
num  Number of pattern to read header from
hdr  Header of pattern returned (defined in rvcstyle.h)

RVCAPPLIBEXPORT int MfReadPatternName int  id,
int  type,
INT32  num,
RVC::OBJECTNAME name
 

Read a particular pattern name.

Defined pattern types: PATTERNTYPE_Symbol Point symbol patterns PATTERNTYPE_Line Line patterns PATTERNTYPE_Bitmap Polygon fill patterns

Parameters:
id  Handle to open style object
type  Type of pattern (PATTTYPE_...)
num  Number of pattern to read name from
name  Name of pattern returned

RVCAPPLIBEXPORT int MfReadStyleName int  id,
int  type,
INT32  num,
RVC::OBJECTNAME name
 

Read a particular style's name.

Defined style types: STYLETYPE_Line Line styles STYLETYPE_Point Point styles STYLETYPE_Polygon Polygon styles STYLETYPE_Text Text styles

Parameters:
id  Handle to open style object
type  Type of pattern (STYLETYPE_...)
num  Number of style to read name from
name  Name of style returned

RVCAPPLIBEXPORT int MfReplaceStyle int  sfindex,
INT32  sinode,
int  dfindex,
INT32  dinode
 

Replace a opened style object with a new style object.

Parameters:
sfindex  Open RVC file handle of source style object
sinode  Inode of source style object (may be opened)
dfindex  Open RVC file handle of destination style object
dinode  Inode of destination style object (may be opened)

RVCAPPLIBEXPORT INT32 MfStyleLocate int