⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 types_of_attributes.htm

📁 acis说明文档
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
				<meta name="keywords" content="Types of Attributes,Extending the Modeler,Blending,Edge,Generic Attributes,Face,Body,Model Topology,Entities,Attributes" />		<link rel="shortcut icon" href="/favicon.ico" />		<link rel="search" type="application/opensearchdescription+xml" href="/r18/opensearch_desc.php" title="DocR18 (English)" />		<link title="Creative Commons" type="application/rdf+xml" href="/r18/index.php?title=Types_of_Attributes&amp;action=creativecommons" rel="meta" />		<title>Types of Attributes - DocR18</title>
		<style type="text/css" media="screen, projection">/*<![CDATA[*/
			@import "/r18/skins/common/shared.css?97";
			@import "/r18/skins/monobook/main.css?97";
		/*]]>*/</style>
		<link rel="stylesheet" type="text/css" media="print" href="/r18/skins/common/commonPrint.css?97" />
		<!--[if lt IE 5.5000]><style type="text/css">@import "/r18/skins/monobook/IE50Fixes.css?97";</style><![endif]-->
		<!--[if IE 5.5000]><style type="text/css">@import "/r18/skins/monobook/IE55Fixes.css?97";</style><![endif]-->
		<!--[if IE 6]><style type="text/css">@import "/r18/skins/monobook/IE60Fixes.css?97";</style><![endif]-->
		<!--[if IE 7]><style type="text/css">@import "/r18/skins/monobook/IE70Fixes.css?97";</style><![endif]-->
		<!--[if lt IE 7]><script type="text/javascript" src="/r18/skins/common/IEFixes.js?97"></script>
		<meta http-equiv="imagetoolbar" content="no" /><![endif]-->
		
		<script type= "text/javascript">/*<![CDATA[*/var skin = "monobook";var stylepath = "/r18/skins";var wgArticlePath = "/r18/index.php/$1";var wgScriptPath = "/r18";var wgScript = "/r18/index.php";var wgServer = "http://doc.spatial.com";var wgCanonicalNamespace = "";var wgCanonicalSpecialPageName = false;var wgNamespaceNumber = 0;var wgPageName = "Types_of_Attributes";var wgTitle = "Types of Attributes";var wgAction = "view";var wgRestrictionEdit = ["sysop"];var wgRestrictionMove = ["sysop"];var wgArticleId = "459";var wgIsArticle = true;var wgUserName = null;var wgUserGroups = null;var wgUserLanguage = "en";var wgContentLanguage = "en";var wgBreakFrames = false;var wgCurRevisionId = "1145";/*]]>*/</script>                
		<script type="text/javascript" src="/r18/skins/common/wikibits.js?97"><!-- wikibits js --></script>
		<script type="text/javascript" src="/r18/index.php?title=-&amp;action=raw&amp;gen=js&amp;useskin=monobook"><!-- site js --></script>
		<style type="text/css">/*<![CDATA[*/@import "/r18/index.php?title=MediaWiki:Common.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000";@import "/r18/index.php?title=MediaWiki:Monobook.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000";@import "/r18/index.php?title=-&action=raw&gen=css&maxage=18000";/*]]>*/</style>
		<!-- Head Scripts -->
		<script type="text/javascript" src="/r18/skins/common/ajax.js?97"></script>	</head>
<body  class="mediawiki ns-0 ltr page-Types_of_Attributes">
	<div id="globalWrapper">
		<div id="column-content">
	<div id="content">
		<a name="top" id="top"></a>
				<h1 class="firstHeading">Types of Attributes</h1>
		<div id="bodyContent">
			<h3 id="siteSub">From DocR18</h3>
			<div id="contentSub"></div>
									<div id="jump-to-nav">Jump to: <a href="#column-one">navigation</a>, <a href="#searchInput">search</a></div>			<!-- start content -->
			<p>In ACIS, the most common types of entities to have <a href="/r18/index.php?title=Attributes&amp;action=edit" class="new" title="Attributes">ATTRIBUTES</a> attached are <a href="/r18/index.php?title=Model_Topology&amp;action=edit" class="new" title="Model Topology">topological</a> <a href="/r18/index.php?title=Entities&amp;action=edit" class="new" title="Entities">entities</a> (implemented in the various topology classes), and many of the methods of the  ATTRIB class are designed with this in mind. However, attributes can be attached to any type of entity. </p><p><a href="/r18/index.php?title=Attributes&amp;action=edit" class="new" title="Attributes">Attributes</a> can be categorized as:</p><table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div><ul><li class="toclevel-1"><a href="#Simple_attributes"><span class="tocnumber">1</span> <span class="toctext">Simple attributes</span></a></li><li class="toclevel-1"><a href="#Complex_attributes"><span class="tocnumber">2</span> <span class="toctext">Complex attributes</span></a></li><li class="toclevel-1"><a href="#Instruction_attributes"><span class="tocnumber">3</span> <span class="toctext">Instruction attributes</span></a></li><li class="toclevel-1"><a href="#Bridge_attributes"><span class="tocnumber">4</span> <span class="toctext">Bridge attributes</span></a></li><li class="toclevel-1"><a href="#Generic_Attributes"><span class="tocnumber">5</span> <span class="toctext">Generic Attributes</span></a></li></ul></td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script><a name="Simple_attributes"></a><h2> <span class="mw-headline"> Simple attributes</span></h2><p>These carry simple data only. They may represent properties such as the material of a <a href="/r18/index.php?title=Body&amp;action=edit" class="new" title="Body">body</a> or color of a <a href="/r18/index.php?title=Face&amp;action=edit" class="new" title="Face">face</a>.</p><a name="Complex_attributes"></a><h2> <span class="mw-headline"> Complex attributes </span></h2><p>These carry pointers to other entities. They may represent properties such as dimensions, constraints, or features. ACIS constructs complex attribute structures to facilitate the <a href="/r18/index.php?title=Extending_the_Modeler&amp;action=edit" class="new" title="Extending the Modeler">extension of ACIS</a> to a specific product modeler.</p><a name="Instruction_attributes"></a><h2> <span class="mw-headline"> Instruction attributes </span></h2><p>These may be explicitly placed on entities to force certain behavior.</p><p><i>Instruction attributes</i> can be used to force one of several possible actions. For example, a <a href="/r18/index.php?title=Blending&amp;action=edit" class="new" title="Blending">blend</a> on a face that runs into a sharp <a href="/r18/index.php?title=Edge&amp;action=edit" class="new" title="Edge">edge</a> may be forced to roll on to that edge rather than to form a cap. The roll on instruction would actually be placed on the encountered edge.</p><p>Instructions may have positions associated with them to allow different behaviors at different points along the blended edge. In this case, the instruction nearest to the point of intercept applies.</p><a name="Bridge_attributes"></a><h2> <span class="mw-headline"> Bridge attributes </span></h2><p>These are used to link an ENTITY with some application specific, variable length data.</p><p>If an entity needs to reference some variable length data, an attribute is created to bridge (connect) from the entity to the data. The variable length data must be placed in an acceptable data structure (such as an array, linked list, or tree) and the attribute must contain a pointer to this variable length data (refer to the following figure).</p><div class="center"><div class="thumb tnone"><div class="thumbinner" style="width:182px;"><a href="/r18/index.php/Image:SPAkern_att_image002.gif" title="Image:SPAkern att image002.gif">Image:SPAkern att image002.gif</a>  <div class="thumbcaption">Bridge Attribute</div></div></div></div><p>A <i>bridge attribute</i> can be used to save and restore application-specific information. The functionality for saving and restoring lies in the  ENTITY class and is therefore inherited by classes derived from ENTITY. ATTRIB is derived from ENTITY, so all classes derived from  ATTRIB inherit methods enabling them to be saved and restored. Application-specific information is probably not contained in objects derived from ENTITY, so some means of bridging between the two sets of data (ACIS-specific and non-ACIS-specific data) is needed. Information that is related to an ENTITY but not contained in the ENTITY can be connected to the ENTITY by putting an attribute on the ENTITY. The attribute can either contain or point to the application-specific data.</p><p>A developer might use an attribute as a bridge to application specific data when converting a component into a separate system. For example, a developer might have originally created a component with its own classes and structures, without intending it to be separate. If it is later decided to convert the component into an independent system, rather than trying to fit the component's classes and structures into the ATTRIB format, the developer can retain the original classes and structures by defining an attribute as a bridge from ACIS to the new systems data.</p><p>A bridge attribute, if savable, is responsible for implementing the logic to save and restore the application specific data. Hence, both the attributes SAVE_DEF and the corresponding RESTORE_DEF would contain this logic.</p><p>The content and format of the saved data is up to the user. Obviously, other users will not be able to interpret the application-specific data in the file unless their applications also contain the user-defined attribute class definition.</p><a name="Generic_Attributes"></a><h2> <span class="mw-headline"> Generic Attributes </span></h2><dl><dd><span class="boilerplate seealso"><i>Main article: <a href="/r18/index.php?title=Generic_Attributes&amp;action=edit" class="new" title="Generic Attributes">Generic Attributes</a></i></span></dd></dl><p>ACIS also provides Generic Attributes, which provide storage for basic types of data. Generic Attributes are useful because they provide a quick and convenient way for applications to store data on entities without having to implement their own attribute. Generic Attributes are implemented with the  ATTRIB_GENERIC class and its derivations.</p><!-- Tidy found serious XHTML errors --><!-- Saved in parser cache with key r18_docdb-r18doc_:pcache:idhash:459-0!1!0!!en!2!edit=0 and timestamp 20080623120136 --><div class="printfooter">Retrieved from "<a href="http://doc.spatial.com/r18/index.php/Types_of_Attributes">http://doc.spatial.com/r18/index.php/Types_of_Attributes</a>"</div>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -