# 2.2.3.5 curvebase

curvebase

## Remark

The Origin C curvebase class is an abstract base class used for polymorphic handling of Curve related template class types. Consequently, Origin C objects of type curvebase can not be constructed. Derived classes, such as Curve, inherit curvebase class methods and should be used instead. The curvebase class is derived from vectorbase class from which it inherits methods and properties.

## Examples

EX1

void curvebase_ex1()
{
Worksheet wks;
wks.Create("origin");
Dataset ds1(wks,0);
Dataset ds2(wks,1);

Curve crvCopy( wks, 0, 1);

ds1.Data(1,30,1);
ds2.Normal(30);
GraphPage gp;
gp.Create("Graph1");
GraphLayer gl = gp.Layers();

gl.Rescale();
}

origin.h

## Members

Name Brief Example
Append Append data from a vector or Dataset object to this Origin C Curve object and update the related Origin Worksheet or Graph window from this Origin C Curve object. Examples
AttachX Attach an Origin C Dataset object to the X data set associated with this Curve object. Examples
CopyData copy curve's x value to xvector and y value to yvector. Examples
CopyX It copies x values from cbSource. Examples
GetName Get the name of an internal Origin dataset. Examples
GetRectPoints Find all the points in a Curve which fall on or within a specified rectangle. Examples
HasX Checks whether or not this Curve object has an associated X data set. Examples
IsValid Checks the validity of an Origin C Dataset object. Examples
SetLowerBound Set the lower display index of the Dataset. Examples
SetUpperBound Set the upper display index of the Dataset. Examples
Sort Use a Curve object to sort a Y data set according to an X data set. Examples
TrimLeft TrimLeft removes elements having the value NANUM from the left end of a Dataset. Examples
TrimRight TrimRight removes elements having the value NANUM from the right end of a Dataset. Examples
Update Update an Origin C Curve object from an Origin data set or vice-versa. Examples
{"ft_lang_label":"__label__en","ft_lang_prob":0.7489971,"math_prob":0.7756476,"size":703,"snap":"2021-43-2021-49","text_gpt3_token_len":184,"char_repetition_ratio":0.14592275,"word_repetition_ratio":0.0,"special_character_ratio":0.2517781,"punctuation_ratio":0.23776224,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9562208,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-12-02T22:15:51Z\",\"WARC-Record-ID\":\"<urn:uuid:228f4482-abd5-4f0a-be78-00629cdbbb8b>\",\"Content-Length\":\"142040\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2595569c-c8f4-4980-8fa6-e21e4cf3177e>\",\"WARC-Concurrent-To\":\"<urn:uuid:627da114-6903-4bd0-b891-d4e345a47a14>\",\"WARC-IP-Address\":\"54.239.153.168\",\"WARC-Target-URI\":\"https://d2mvzyuse3lwjc.cloudfront.net/doc/OriginC/ref/curvebase\",\"WARC-Payload-Digest\":\"sha1:ICALYSPMNRYJDRT2SB23BBZR2PIY3JCJ\",\"WARC-Block-Digest\":\"sha1:4HAY6RLPGCYQESCMAA42HW7SZ4VCNJBP\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964362297.22_warc_CC-MAIN-20211202205828-20211202235828-00423.warc.gz\"}"}